Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GIT-Svn命令在克隆SNVRePo的中间崩溃。如何解决这个问题?_Git_Svn_Git Svn - Fatal编程技术网

GIT-Svn命令在克隆SNVRePo的中间崩溃。如何解决这个问题?

GIT-Svn命令在克隆SNVRePo的中间崩溃。如何解决这个问题?,git,svn,git-svn,Git,Svn,Git Svn,我有一份svn回购协议,结构如下 ProjectX -> trunk -> tags -> 1.0.x -> 1.1.x -> branches -> 1.1.1 我尝试使用Git Svn将此回购协议转换为Git回购,但GIT-Svn在中间崩溃,存在以下错误: Use of uninitialized value $resolved in scalar chomp at /Applications/Xcode.app/Co

我有一份svn回购协议,结构如下

ProjectX
 -> trunk
 -> tags
     -> 1.0.x
     -> 1.1.x
 -> branches
     -> 1.1.1
我尝试使用Git Svn将此回购协议转换为Git回购,但GIT-Svn在中间崩溃,存在以下错误:

Use of uninitialized value $resolved in scalar chomp at /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-svn line 1764.
Use of uninitialized value $resolved in scalar chomp at /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-svn line 1764.
error: there are still refs under 'refs/remotes/svn/tags'
fatal: Cannot lock the ref 'refs/remotes/svn/tags'.
update-ref -m r133452 refs/remotes/svn/tags 819b5012690ffe22208d5727ad26673e2670560e: command returned error: 128

command failed:
git svn fetch
我不确定发生了什么,但它在开始获取1.1.x分支上完成的标记时崩溃了。如何解决此问题?

几点建议:

  • 使用
    svnadmin verify
    检查存储在存储库中的数据。
    svn
    存储库可能有错误。如果您可以使用
    svn
    (通常的操作:签出、更新、提交)来处理它,那么存储库损坏的可能性很小,但检查并没有什么坏处,只是为了确保这一点。如果
    svnadmin verify
    报告错误或不一致,则。。。我不知道你是否能/如何修理它

  • 用于进行转换;它产生了比git svn更好的结果

  • 如果
    SubGit
    不适合您的需要,请安装最新版本的
    Git
    。苹果提供的版本总是比最新版本晚几个月。下载并编译最新版本,或者安装并使用它安装较新版本的
    Git


  • 是否使用最新的git版本?如果没有,我会更新并重试,也许问题消失了。