【问题标题】:How to debug git svn fetch invalid XML如何调试 git svn 获取无效的 XML
【发布时间】:2015-07-30 15:46:50
【问题描述】:

我尝试使用 git2svn 将 SVN 存储库转换为 git。我的服务器使用用户名和密码。

我做到了

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 时,我得到了同样的错误。

我该如何调试呢? git svn fetch 似乎没有 --verbose 选项。

svn co https://example.com/svn/bar

工作...

编辑

根据 kan 的回答,我尝试了几件事:

  • 我在 repo 上禁用了身份验证
  • 我禁用了 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 调用后

它有效。

我还使用wireshark 进行了网络分析,并看到了带有德语变音符号的cmets。可能svn2git这里有编码问题?

auskommentierten Legacy-Code endg\374ltig entfernt

而且似乎连任何联系都没有。

【问题讨论】:

  • 你用的是什么版本的git?
  • 这是对任何帮助linuxproblem.org/art_22.html
  • @VonC: git version 1.9.1 - 好吧,我想那已经很老了。
  • 您在哪个操作系统上使用此命令?是否有机会检查它是否适用于更新版本的 git?
  • 我刚刚升级到 Ubuntu 15.04。 Git 现在是 2.1.4 - 问题仍然存在。

标签: git svn


【解决方案1】:

svn co 可能运行良好只是因为它检查了最后一个修订版,而git svn 下载了整个存储库。因此,远程存储库可能在某些版本中已损坏。

有几件事可以尝试:

  1. 使用工具捕获 http 流量
  2. 如果您可以直接访问存储库(不是通过 https),请尝试使用它
  3. 使用 svnrdump 将存储库的整个转储下载到本地驱动器并尝试使用它。
  4. 尝试改用 subgit。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-07-23
    • 1970-01-01
    • 2018-07-15
    • 1970-01-01
    • 1970-01-01
    • 2010-12-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多