I am trying to import my repository from svn to git using svn2git, but it seems like it\'s failing when it hits a branch. What\'s the problem?
Found possible
I was following some svn to git instructions when I ran into the same error message. The error occurred when I ran this command:
git svn clone file:///pathto/repo /pathto/new-git-repo –-no-metadata -A authors.txt -t tags -b branches -T trunk
After the error occurred, I edited the .git/config-file as follows:
tags = tags/*:refs/remotes/svn/tags/*
branches = branches/*:refs/remotes/svn/*
->
tags = tags/*:refs/remotes/svn/tags/*
branches = branches/*:refs/remotes/svn/branches/*
I.e., I just formatted the "braches" line to be similar to the "tags" line. Then I ran the command again. The process produced a valid git repo with remote branches.