nirvdrum / svn2git

Ruby tool for importing existing svn projects into git.
MIT License
2.11k stars 443 forks source link

Cannot retrieve git commit from SVN revision after svn2git #166

Closed clns closed 10 years ago

clns commented 10 years ago

The svn2git process completed successfully, but the SVN-to-Git relation seems to be broken.

The svn2git import command used: svn2git file:///svn/repository --nobranches --notags --metadata

The errors when running git-svn in the successfully imported repository:

git svn info

Unable to determine upstream SVN information from working tree history

git svn log -r 821

fatal: bad default revision 'refs/remotes/git-svn'

nirvdrum commented 10 years ago

If you're looking to continue using git-svn, you're probably better off using git-svn from the start. svn2git mostly wraps git-svn to create a more "complete" git repository in the end. But the general idea is you'll do the conversion and then use git exclusively.

clns commented 10 years ago

Yes, I do plan to use git exclusively afterwards, however I need to map my old revisions to the new git commit hashes to be able to continue with Git. I feel this may be a bug in svn2git though since I used the --metadata option but the metadata doesn't appear to be there.