command failed: 2>&1 git svn fetch #69

borgified opened this Issue Jun 18, 2012 · 9 comments


None yet

8 participants


i run this command: svn2git --verbose

then i get this:
W: +empty_dir: trunk/x86
Use of uninitialized value $u in substitution (s///) at /usr/lib/git-core/git-svn line 2097.
Use of uninitialized value $u in concatenation (.) or string at /usr/lib/git-core/git-svn line 2097.
refs/remotes/svn/trunk: '' not found in ''

command failed:
2>&1 git svn fetch is in standard layout (trunk, branches, tags) at the root level of the repo so i did not use any other options when running git2svn

2096 my $u = (::cmt_metadata("$refname"))[0];
2097 $u =~ s!^\Q$url\E(/|$)!! or die "$refname: '$url' not found in '$u'\n";

shockie commented Jun 22, 2012

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.

vBm commented Jun 24, 2012

Confirmed. I have this problem as well. Hope it gets fixed soonish.


thx for the suggestion shockie. i just tried this out again and it worked this time... i issued the same command but on a different system... (still same ubuntu 12.04 though) so im not exactly sure what caused it to work...


ran it again successfully

guidupuy commented Aug 8, 2012

@shockie's suggestion fixed it for me

samvdb commented Sep 27, 2012

suggestion worked. removed the .git directory and ran it again with success


I had the same problem. You don't need to delete the .git folder. Just fix an error in .git/config


This issue seems to be a dupe of #50.


thanks @gregersrygg and @shockie - you solutions worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment