我在尝试将subversion存储库迁移到Git存储库时遇到问题
我通过下面的命令运行
git svn clone -s --ignore-paths="tags" svn://localhost/web .我得到了如下的错误信息:
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中。
我错过了什么吗?
发布于 2011-11-20 11:13:28
对于我的存储库,有以前的修订版,它包含非标准的存储库形式,比如/branches/tag,所以,我通过使用以下命令重新创建git rep修复了这个问题
git svn init -s --ignore-paths="^tags|^branches/tags" svn://localhost/web .
git svn fetchhttps://stackoverflow.com/questions/8116565
复制相似问题