svn2git: Cannot setup tracking information

后端 未结 4 1773
被撕碎了的回忆
被撕碎了的回忆 2021-02-20 09:41

I am trying to migrate a SVN project to git with thel help of svn2git. When executing the command it exits with the following error:

Running command: git branch          


        
4条回答
  •  说谎
    说谎 (楼主)
    2021-02-20 10:14

    this should fix it:

    Changing this line https://github.com/nirvdrum/svn2git/blob/master/lib/svn2git/migration.rb#L319
    from run_command("git branch --track \"#{branch}\" \"remotes/svn/#{branch}\"")
    to run_command("git branch \"#{branch}\" \"remotes/svn/#{branch}\"") should fix it.

    At least it works now for me without any issues.

    you can find the migration.rb file on Windows under C:\Ruby200-x64\lib\ruby\gems\2.0.0\gems\svn2git-2.2.2\lib\svn2git or something like this

    https://github.com/nirvdrum/svn2git/issues/132#issuecomment-31453436

提交回复
热议问题