How to debug git svn fetch invalid XML
I am trying to convert an SVN repository to git using git2svn
. My server uses a username and password.
I did
svn2git https://example.com/svn/bar
And get the error
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
When running git svn fetch
in a new folder, I get the same error.
How can I debug this? git svn fetch
doesn't seem to have an option --verbose
.
svn co https://example.com/svn/bar
works...
change
Based on Kahn's answer, I've tried several things:
- I have disabled authentication on the repo
- I disabled HTTPS
- I have downloaded subgit
Subgit shows
error: Import has been interrupted; --svn-url option is not valid at the moment.
After calling it with subgit import --svn-url http://example.com/svn/bar bar.git
it works.
I also did a network analysis using wireshark and saw comments with German umlauts. Maybe svn2git has encoding issues here?
auskommentierten Legacy-Code endg\374ltig entfernt
and doesn't seem to even make any connection.
source to share
svn co
may only work well because it checks out the latest revision and git svn
downloads the entire repository. Thus, it is possible that the remote repository is corrupted by some revision.
A few things to try:
- Use a tool to capture http traffic.
- If you have direct access to the repository (not via https) try using it
- Use svnrdump to download the entire repository dump to your local drive and try playing with it.
- Use a subtitle instead.
source to share