我正在尝试使用 git svn
对大型 subversion 存储库进行从 subversion 到 Git 的单向迁移。使用以下命令(重要的是迁移后将仅使用 Git):
git svn clone --no-minimize-url --trunk=/trunk/GBI --branches=/branches/GBI --tags=/tags/GBI --authors-file=authors.txt https://yyy/svn-repos/zzz/ GBI
运行几个小时后,克隆进程崩溃并出现以下错误:
r79791 = 00349b8063f90447ea8a040751cd2a40e74b74f3 (refs/remotes/origin/trunk)
Error from SVN, (175009): Malformed network data: The XML response contains invalid XML: Malformed XML: no element found
然后我想也许有一种聪明的方法可以在违规修订后立即恢复流程......这可能吗?
任何想法首先导致此错误的原因是什么?
The answer to this question建议使用
--log-window-size
为了防止这个问题首先发生......我可以添加选项并从失败的修订版中重试吗?这个问题然后是git svn
内存使用问题还是仅与损坏的 Subversion 修订版有关的问题?有没有git svn option加强流程以忽略错误,而不是因为此错误而停止冗长的流程?
更新:我是在 Atlassian Stash Migrating to Git guide 之后到达这一点的表示使用
git svn
和他们的 svn-migration-scripts.jar
执行
最佳答案
我最近有
Error from SVN, (175009): Malformed network data: The XML response contains invalid XML: Malformed XML: unclosed token
几乎相同并且正在执行
git svn fetch
在由 Mykola Gurov 提到的 git clone 创建的存储库文件夹中在评论中确实在发生错误的修订版中继续运行,并一直运行到最后一个 SVN 修订版。
关于Git svn 克隆 : Is it possible to resume after error Malformed XML: no element found?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39661880/