Git-svn“refs/remotes/tags”存在;无法创建

发布于 2024-12-15 11:05:58 字数 1300 浏览 4 评论 0原文

我在尝试将 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

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

我错过了什么吗?

I have a problem when trying to migrate the subversion repository to Git repository

I run by following command

git svn clone -s --ignore-paths="tags" svn://localhost/web .

and I got the error message as below,

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

actually I don't want to ignore any path, but seem like tags occurs the problem, so I put it to the ignore-path.

Do I missing something?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幸福不弃 2024-12-22 11:05:58

对于我的存储库,以前的版本包含非标准存储库形式,例如 /branches/tags ,因此,我通过使用以下命令重新创建 git rep 进行修复

git svn init -s --ignore-paths="^tags|^branches/tags" svn://localhost/web .
git svn fetch

For my repository, there are the previous revision that contains non-standard repository form like /branches/tags , so, I fixed by re-create git rep with following command

git svn init -s --ignore-paths="^tags|^branches/tags" svn://localhost/web .
git svn fetch
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文