首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Git-svn‘refs/remotes/tag’已存在;无法创建

Git-svn‘refs/remotes/tag’已存在;无法创建
EN

Stack Overflow用户
提问于 2011-11-14 10:09:24
回答 1查看 1.6K关注 0票数 0

我在尝试将subversion存储库迁移到Git存储库时遇到问题

我通过下面的命令运行

代码语言:javascript
复制
git svn clone -s --ignore-paths="tags" svn://localhost/web .

我得到了如下的错误信息:

代码语言:javascript
复制
branch_from: /branches/tags => /branches/tags/3.7
Found possible branch point: svn://localhost/web/branches/tags/3.7 => svn://localhost/web/tags/3.7, 15131
Initializing parent: refs/remotes/tags/3.7@15131
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: File not found: revision 101, path '/branches/tags/3.7'
W: Do not be alarmed at the above message git-svn is just searching aggressively for old history.
This may take a while on large repositories
Found possible branch point: svn://localhost/web/branches/workspace_production_3.0 => svn://localhost/web/branches/tags/3.7, 10538
Found branch parent: (refs/remotes/tags/3.7@15131) a7067c8515c17c7f0bf8c6390a785426a8de5b83
Following parent with do_switch
Successfully followed parent
error: 'refs/remotes/tags' exists; cannot create 'refs/remotes/tags/3.7@15131'
fatal: Cannot lock the ref 'refs/remotes/tags/3.7@15131'.
update-ref -m r10539 refs/remotes/tags/3.7@15131 67f3c547c7dfac657fcfd7759746f44eb74b187f: command returned error: 128

实际上我不想忽略任何路径,但是似乎标签出现了问题,所以我把它放到了ignore-path中。

我错过了什么吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-11-20 11:13:28

对于我的存储库,有以前的修订版,它包含非标准的存储库形式,比如/branches/tag,所以,我通过使用以下命令重新创建git rep修复了这个问题

代码语言:javascript
复制
git svn init -s --ignore-paths="^tags|^branches/tags" svn://localhost/web .
git svn fetch
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8116565

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档