Search code examples
gitsvnsvn2git

svn2git - do all authors in SVN need to be created in Git ahead of time?


I'm looking at svn2git to do some conversions, but am confused about one thing. We have a number of people in our SVN repo history, who made changes and committed code, who are not here anymore. Do I need to create their accounts in Git, even though they are no longer with the company, for the conversion to work?


Solution

  • You do not need to create accounts -- but under the common import procedures they need an entry in a file authors.txt you reference to provide a mapping of svn account (names) to emails (as id) as used in git.

    E.g. I have done the following for several dozen repos:

    git svn clone svn+ssh://user@host/svnroot/repo gitrepo \
            --no-metadata  -A authors.txt
    

    and if the users is missing in authors.txt the process aborts.