Wednesday, April 28, 2010

Bad Existing Git Repo Causes Subsequent Svn to Git Conversion Error

If you get the following error:
$ git svn clone svn+ssh://userid@some.host/path/to/svn/project/dir --no-metadata -T trunk /path/to/local/git/repo/project/dir
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: File not found: revision 8481, path 'misspelled/or/invalid/path/to/svn/project/dir'
W: Do not be alarmed at the above message git-svn is just searching aggressively for old history.
This may take a while on large repositories
try removing the directory of the git repo that you are trying to migrate into from svn, or just move it out of the way:
mv /path/to/local/git/repo/project/dir /path/to/local/git/repo/project/dir.bak
It doesn't appear to like having a poorly migrated git repo already there.

No comments: