【问题标题】:what i can do after git svn clone fails?git svn clone 失败后我能做什么?
【发布时间】:2012-08-13 11:43:16
【问题描述】:

我的问题与git-svn clone fails unexpectedly 不一样,因为它可以通过删除 --no-metadata 选项来解决,我的命令中没有这样的选项,我的命令很简单:

git svn clone -s svn://xxx.xxx

又一次,我无法从 svn repo 克隆代码:( 错误信息如下:

r506 = 82a01de65882f5bd800aca5a6f3556ba940ea3f5 (refs/remotes/trunk)
Found possible branch point: svn://svn.nginx.org/nginx/trunk => svn://svn.nginx.org/nginx/tags/release-0.1.27, 506
Found branch parent: (refs/remotes/tags/release-0.1.27) 82a01de65882f5bd800aca5a6f3556ba940ea3f5
Following parent with do_switch
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/SVN/Core.pm line 584.
Network connection closed unexpectedly:  at /usr/libexec/git-core/git-svn line 3136


real    8m13.819s
user    0m24.079s
sys     0m44.250s
[root@home git-test]# echo $?
1

从 svn repo 克隆代码失败后我能做什么:( 从头开始?又失败了? 为什么会这样,这是git、svn还是git-svn的问题?

【问题讨论】:

标签: git svn version-control centos git-svn


【解决方案1】:

尝试使用--revision 参数指定有限数量的修订。您很可能不需要完整的历史记录,特别是如果项目历史悠久。

来自手册页:

这允许支持部分/烧灼历史的修订范围。 $NUMBER、$NUMBER1:$NUMBER2(数字范围)、$NUMBER:HEAD 和 BASE:$NUMBER 均受支持。

例如,--revision 3000:HEAD 将获取从 r3000 开始的修订。

【讨论】:

  • --revision 是什么意思,如果我将--revision 设置为 3000,那么 3000 之前的所有历史都会被忽略,对吧?
猜你喜欢
  • 2012-04-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-10-06
  • 1970-01-01
  • 2010-11-03
  • 1970-01-01
  • 2019-08-16
相关资源
最近更新 更多