2012-03-29 58 views
2

SVN和GIT存儲庫都已設置在同一臺服務器上。當我們嘗試運行該腳本時,我們收到以下錯誤消息。更改代碼svn2git

[[email protected] ~]# ./svn2git.pl /home/svntree/testrepo /home/repositories/testrepo.git 
fatal: ambiguous argument 'HEAD^..HEAD': unknown revision or path not in the working tree. 
Use '--' to separate paths from revisions 
Invalid GIT commit revision: 

我們正在使用SVN 1.1.4版和GIT 1.7.2.2版進行測試。

+0

你爲什麼要傳遞第二個目錄?如果我看一下svn2git的代碼(https://github.com/schwern/svn2git/blob/master/svn2git),該示例說:只傳遞SVN回購的路徑... – eckes 2012-03-29 09:55:16

+0

在我們需要的腳本初始通過svn&git回購 – user1280241 2012-04-04 07:35:23

回答

0

我建議你使用SubGit進行轉換,因爲它執行更精確的轉換,保留忽略和EOL概念並支持Git < - > SVN同步。