当历史记录中存在名称无效的分支时,可以克隆 SVN 存储库吗?
我有一个 SVN 存储库,我想使用 git-svn 进行克隆,但是在这个 SVN 存储库的黑暗过去中,有一些分支的名称中包含空格...
当我尝试克隆时,git-svn 失败并显示 invalid具有所述分支的修订版上的对象名称。
有没有办法解决这个问题,并且不涉及在失败的修订后启动克隆?
I have an SVN repository that I would like to clone using git-svn, but in the murky past of this SVN repo there were some branches made with spaces in the name...
When I try to clone, git-svn fails with invalid object name on the revision with said branches.
Is there a way to get around this problem, that doesn't involve starting the clone after the failing revision?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一种令人讨厌的冗长方法可以从源头上解决问题,即使用 SVN 管理工具。我认为您需要对存储库(的副本)进行本地访问:
不过你可能想考虑修补 git-svn 。听起来不那么痛苦了。不要忘记将您的补丁发布回上游,以便我们其他人从中受益。 :)
PS 我故意没有发布任何命令行来执行此操作,因为我从未尝试过,并且不能保证它是正确的。您正在寻找的工具是
svnadmin
。There's a nasty long winded way to fix the problem at source, using the SVN admin tools. You'll need local access to (a copy of) the repository, I think:
You might like to consider patching git-svn though. That sounds less painful. Don't forget to post your patch back to upstream for the rest of us to benefit from. :)
P.s. I deliberately haven't posted any command lines to do that because I've never tried, and couldn't promise it'd be right. The tool you're looking for is
svnadmin
.