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版進行測試。
你爲什麼要傳遞第二個目錄?如果我看一下svn2git的代碼(https://github.com/schwern/svn2git/blob/master/svn2git),該示例說:只傳遞SVN回購的路徑... – eckes 2012-03-29 09:55:16
在我們需要的腳本初始通過svn&git回購 – user1280241 2012-04-04 07:35:23