【发布时间】:2014-12-02 01:31:43
【问题描述】:
我正在执行以下步骤: http://git-scm.com/book/en/v2/Git-and-Other-Systems-Git-as-a-Client
将 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 版本,但仍然遇到同样的错误。
标签: git svn version-control osx-lion