git svn 克隆失败 "Failed to strip path"
git svn clone fails with "Failed to strip path"
我在一个全是 Subversion 的商店里使用 git。当我使用
签出回购协议时
git svn clone -s --preserve-empty-dirs https://<subversion-server>/svn/<repo> <folder-name>
克隆过程开始时一切似乎都很好,但在过程中的某个时刻,git 失败并显示
Failed to strip path '<path-to-some-file>' ((?^:^trunk(/|$)))
有人知道出了什么问题或如何解决这个问题吗?
在互联网上搜索 an explanation and advice on how to fix this(见第 4 步)。
但该建议可能已过时,因为它不适用于我的安装 (git 2.7.0)。但现在知道了这个问题,我能够找到有问题的行并应用建议的修复:
通过更改 usr/lib/perl5/vendor_perl/5.22/Git/SVN/Fetcher.pm
中有问题的行进行修复,第 163 行:
把die "Failed to strip path...
改成print "Failed to strip path...
就好了
我希望这也能帮助其他人。
我在一个全是 Subversion 的商店里使用 git。当我使用
签出回购协议时git svn clone -s --preserve-empty-dirs https://<subversion-server>/svn/<repo> <folder-name>
克隆过程开始时一切似乎都很好,但在过程中的某个时刻,git 失败并显示
Failed to strip path '<path-to-some-file>' ((?^:^trunk(/|$)))
有人知道出了什么问题或如何解决这个问题吗?
在互联网上搜索 an explanation and advice on how to fix this(见第 4 步)。
但该建议可能已过时,因为它不适用于我的安装 (git 2.7.0)。但现在知道了这个问题,我能够找到有问题的行并应用建议的修复:
通过更改 usr/lib/perl5/vendor_perl/5.22/Git/SVN/Fetcher.pm
中有问题的行进行修复,第 163 行:
把die "Failed to strip path...
改成print "Failed to strip path...
就好了
我希望这也能帮助其他人。