Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.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

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克隆错误:错误:在';参考/遥控器/标签';_Svn_Git_Clone_Git Svn_Dvcs - Fatal编程技术网

git svn克隆错误:错误:在';参考/遥控器/标签';

git svn克隆错误:错误:在';参考/遥控器/标签';,svn,git,clone,git-svn,dvcs,Svn,Git,Clone,Git Svn,Dvcs,我正在尝试将Subversion存储库克隆到git,但它一直给我一个错误,我真的不明白: error: there are still refs under 'refs/remotes/tags' fatal: Cannot lock the ref 'refs/remotes/tags'. update-ref -m r1649 refs/remotes/tags 16630eb01aa7abb331cdaa7ca07c1736656a058e: command returned error:

我正在尝试将Subversion存储库克隆到git,但它一直给我一个错误,我真的不明白:

error: there are still refs under 'refs/remotes/tags'
fatal: Cannot lock the ref 'refs/remotes/tags'.
update-ref -m r1649 refs/remotes/tags 16630eb01aa7abb331cdaa7ca07c1736656a058e: command returned error: 128
subversion项目有很多标记和大约15个分支。它似乎每次都在不同的点失败。我已经克隆了很多其他的项目,很好,只是似乎被这个项目卡住了

你知道这个错误意味着什么,以及我如何解决这个问题吗

更新:

我已经找到了问题的原因,现在我只需要一个解决方案。首先,每一次失败都不是一个不同的点,而是每一次特定的修订都失败了。我检查了该版本的subversion日志,发现我错误地在分支/标记中创建了标记,而不是在标记中创建了标记。这是立即修复的,但它似乎在git svn中引起了问题


你知道我能做些什么来解决这个问题吗?

正如我在评论中所说的,解决方案是分两步执行克隆,从开始到问题提交之前,然后从问题提交之后到结束指定一个提交范围

通过查看失败尝试的日志,我能够找出问题所在。您可以从问题中我的错误消息中看到,它是1649修订版


您可以通过指定
-r start:end
来指定要使用的提交范围,然后对于其余的提交,您可以将范围指定为
-r start:HEAD
,它将获取从“开始”修订号到最新版本号的所有内容。

克隆时,试着忽略它抱怨的特定路径,我该怎么做?你可以使用
git svn init
--ignore paths=
选项。我确实尝试过,但从未奏效。可能是用得不对。我通过使用一系列提交进行克隆,并在错误的提交处停止,从而绕过了它。然后我从那次失败的失败中走出来,一直走到最后。我真的试过了,但从来没有成功过。可能是用得不对。我通过使用一系列提交进行克隆,并在错误的提交处停止,从而绕过了它。然后,我从提交中取出了坏的一个,直到最后。