尝试将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。
我错过了什么吗?
答案 0 :(得分:0)
对于我的存储库,有以前的版本包含非标准的存储库表单,如/ branches / tags,所以,我通过使用以下命令重新创建git rep来修复
git svn init -s --ignore-paths="^tags|^branches/tags" svn://localhost/web .
git svn fetch