【发布时间】: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 - 问题仍然存在。