gitsvn2git

How do I fix the issue that causes svn2git to fail with "no associated commit metadata"?


I am attempting to convert a remote Subversion repository to git on my local Windows machine. I installed ruby, svn2git, and then created a file called authors.txt for converting the associated committers.

When I run the command svn2git my://repo/url --authors authors.txt, I get the error:

Checking svn:mergeinfo changes since r3: 1 sources, 1 changed
refs/remotes/svn/Production: no associated commit metadata

command failed: git svn fetch

I have searched around and I was unable to find any situation that applied directly to my error. Anyone have a clue why this error would pop up?


Solution

  • There are plenty tools called svn2git, but from your question I see you are not using the KDE one from https://github.com/svn-all-fast-export/svn2git. I strongly recommend using that svn2git tool. It is the best I know available out there and it is very flexible in what you can do with its rules files.

    You will easily be able to configure it for your layout to get the result you want and expect.

    If you are not 100% about the history of your repository, svneverever from http://blog.hartwork.org/?p=763 is a great tool to investigate the history of a SVN repository when migrating it to Git.