【发布时间】:2016-05-17 14:12:17
【问题描述】:
在 Cygwin 下使用 git 2.8.2 和 svn 1.9.4,当使用 git svn clone 克隆我们的存储库时,我在某个提交时遇到了难题:
r3640 = eb94... (refs/remotes/svn/trunk)
Found possible branch point: https://.../repo/<branchname> => https://.../repo/branches/<branchname>, 3641
Initializing parent: refs/remotes/svn/<branchname>@3641
Error from SVN, (175009): Malformed network data: The XML response contains invalid XML: Malformed XML: no element found
观察#1:当使用-r3600:HEAD 进行克隆时,即从足够近的提交中,操作成功。繁琐的实验表明,当从有问题的提交之前的大约 100 个修订开始克隆时,就会出现问题。
观察 #2:这似乎只发生在上述形式的分支中:错误地在 repo 根 repo/<branchname> 中创建,然后移动到 repo/branches/<branchname>
问题是什么以及如何解决?
【问题讨论】: