失敗,我在下面的步驟: http://git-scm.com/book/en/v2/Git-and-Other-Systems-Git-as-a-Client混帳SVN遷移與SVN 1.8
移動一個SVN庫與git。我的本地SVN版本是:
$ svn --version svn, version 1.8.10 (r1615264) compiled Aug 25 2014, 10:52:18 on x86_64-apple-darwin12.5.0
Git版本:
$ git --version git version 2.1.0
當我克隆庫我得到一個錯誤讀取本地文件系統格式:
$ git svn clone file:///tmp/test-svn -s
Initialized empty Git repository in /private/tmp/test-svn/.git/
Couldn't open a repository: Unable to connect to a repository at URL 'file:///tmp/test-svn': Unable to open an ra_local session to URL: Unable to open repository 'file:///tmp/test-svn': Expected FS format between '1' and '4'; found format '6' at /usr/local/Cellar/git/2.1.0/lib/perl5/site_perl/Git/SVN.pm line 310
根據svn發佈的說明,FS格式6在svn 1.8中引入: http://subversion.apache.org/docs/release-notes/1.8.html#revprop-packing
難道是git 2.1 Perl腳本還不兼容這個svn版本嗎?更重要的是,我怎樣才能讓這個svn庫轉換成git?
我試着將git升級到最新版本2.2並仍然得到相同的錯誤。 – saschwarz 2014-12-02 03:47:38