I'm trying to migrate a project from SVN to git. This is the command I use:
$ git svn clone http://oursvnserver/ --no-metadata -A ../authors-transform.txt --trunk=path/to/trunk --branches=path/to/branches --tags=path/to/tags . --username=mysvnusername --prefix=origin/
The current directory is the directory that I want to become a repository. authors-transform.txt
is most definitely in the right location. The project uses the standard layout, but it does not exist at the root of the repository. (Unfortunately, someone long ago started the practice of just stuffing all projects into the same repository. That's why I specify --trunk
, --branches
, and --tags
.) It seems to check out fine. Then I try to generate an ignore file and get this incredibly cryptic error:
$ git svn show-ignore
config --get svn-remote.svn.fetch :refs/remotes/git-svn$: command returned error: 1
It appears to be running some other command in the process, so I made some guesses:
$ git config --get svn-remote.svn.fetch :refs/remotes/git-svn || echo $?
1
$ git config --get svn-remote.svn.fetch :refs/remotes/git-svn$ || echo $?
1
So maybe I'm guessing right about what command it's calling? But that doesn't really help.
What does this error actually mean? What can I try to resolve it?
Using msysgit 1.9.4.