git svn migration failing with svn 1.8

后端 未结 1 1557
谎友^
谎友^ 2021-02-05 08:06

I\'m following the steps in: http://git-scm.com/book/en/v2/Git-and-Other-Systems-Git-as-a-Client

to move an svn repository to git. My local svn version is:

相关标签:
1条回答
  • 2021-02-05 08:36

    I got an answer on the git-users email list.

    The solution is to run a local svnserver and use the svn protocol when running git svn clone instead of the file protocol. That avoids git-svn needing to parse the svn 1.8 file format.

    Suppose your repository is in a directory /path/to/repository/test-svn. Change into the /tmp directory and run

    svnserve -d -r /path/to/repository
    

    Then you can run

    git svn clone svn://127.0.0.1/test-svn -s
    

    Afterwards, stop the svnserver and delete the temporary svn repository.

    0 讨论(0)
提交回复
热议问题