Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn2git cryptic error

Tags:

git

svn

I'm trying to import SVN repo into GIT.
svn2git terminates with this error message:

command failed: 2>&1 git svn fetch

When I'm trying to run "git svn fetch" manually, it gives this error:

r8641 = dbb23736330e97c356a5ecd0dd29634265b7956c (refs/remotes/svn/trunk) Permission denied: Can't open '/tmp/report.tmp': Permission denied at C:\Program Files (x86)\Git/libexec/git-core\git-svn line 3187

(running script under admin rights).

Any advise?

UPD I've noticed, that before this error happens - some files are processed successfully (i.e. svn fetch executes for some time). The error happens in random time after command start, usually in a few seconds.

like image 291
user626528 Avatar asked Sep 02 '12 07:09

user626528


3 Answers

Running svnserve with -d -r can be a solution:

http://blog.dbtracer.org/2010/01/20/porting-subversion-git-with-error/

like image 83
Andreas Rehm Avatar answered Nov 13 '22 22:11

Andreas Rehm


The problem is that you are accessing this file locally and using different formats for your original svn repo and the git instance that is migrating from svn to git (most likely your git is behind your svn repo version) - instead try running the migration through an svn server - try starting up an svn server with

svnserve.exe -d -r /path/to/repo

and then try your import again using:

git.exe svn init -s "svn://localhost/repo_name"

The problem is not your permissions, but a mismatch of versions

like image 2
Michael Avatar answered Nov 13 '22 22:11

Michael


From here:

I had the same problem, happens when an error occurs (i missed some authors in the authors file) in the middle of the process. I solved it by removing the directory in where you executed svn2git, recreate it and execute it again. Still this isn't a solution and this issue needs to be fixed.

like image 1
Jepessen Avatar answered Nov 13 '22 22:11

Jepessen