如何调试git svn获取无效的XML [英] How to debug git svn fetch invalid XML
问题描述
我尝试使用 git2svn
将SVN存储库转换为git.我的服务器使用用户名和密码.
I try to convert a SVN repository to git using git2svn
. My server uses username and password.
我做到了
svn2git https://example.com/svn/bar
得到错误
Initialized empty Git repository in /tmp/bar/.git/
Error from SVN, (130003): XML data was not well-formed: The REPORT response contains invalid XML (200 OK)
command failed:
git svn fetch
在新文件夹中执行 git svn fetch
时,出现相同的错误.
When doing git svn fetch
in the new folder, I get the same error.
我该如何调试? git svn fetch
似乎没有-verbose
选项.
How can I debug this? git svn fetch
does not seem to have a --verbose
option.
svn co https://example.com/svn/bar
有效...
修改
根据kan的回答,我尝试了几件事:
Based on the answer by kan I tried several things:
- 我在存储库上禁用了身份验证
- 我禁用了HTTPS
- 我下载了subgit
Subgit显示
error: Import has been interrupted; --svn-url option is not valid at the moment.
使用subgit import调用后--svn-url http://example.com/svn/bar bar.git
After calling it with subgit import --svn-url http://example.com/svn/bar bar.git
有效.
我还使用wireshark进行了网络分析,并看到了德国变音符号的评论.也许svn2git在这里有编码问题吗?
I also did a network analysis using wireshark and saw comments with German umlauts. Does maybe svn2git have encoding problems here?
auskommentierten Legacy-Code endg\374ltig entfernt
似乎根本没有任何联系.
and seems not even to do any connection.
推荐答案
svn co </code>可能效果很好,仅因为它签出了最新修订版,而
git svn
下载了整个修订版资料库.因此,远程存储库可能在某些版本上已损坏.
svn co
may works well only because it checks out last revision, while git svn
downloads the whole repository. So, probably the remote repository is corrupted at some revision.
一些尝试:
- 使用工具捕获http流量
- 如果您可以直接访问存储库(而不是通过https),请尝试使用它
- 使用svnrdump将存储库的整个转储下载到本地驱动器,然后尝试使用它.
- 尝试改用subgit.
这篇关于如何调试git svn获取无效的XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!