Error with Git SVN clone

前端 未结 6 2041
忘了有多久
忘了有多久 2021-01-17 10:58

I am migrating several projects from SVN to Git, and I am using Git\'s \'svn clone\' feature. I am trying to run the following:

git svn clone --stdlayout --a         


        
6条回答
  •  鱼传尺愫
    2021-01-17 11:26

    Run git --version and ensure that you are on Version 2.4+. I can't find the link right now, but back in 2.2.x and before, there was a bug in the Git SVN code that would cause it to fail at various points through large repository migrations. I ended up working with the Git developers on IRC and using a patch someone posted to the Git Mailing List, and got it working. That patch has since been merged and released, though. Ensure that you have a recent Git and a recent SVN. You can also resume a git svn clone just by running git svn fetch inside the directory. Also, --verbose helps see more context on error.

提交回复
热议问题