问题
I try to convert a SVN repository to git using git2svn
. My server uses 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 doing git svn fetch
in the new folder, I get the same error.
How can I debug this? git svn fetch
does not seem to have a --verbose
option.
svn co https://example.com/svn/bar
works...
edit
Based on the answer by kan I tried several things:
- I disabled authentication on the repo
- I disabled HTTPS
- I 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. Does maybe svn2git have encoding problems here?
auskommentierten Legacy-Code endg\374ltig entfernt
and seems not even to do any connection.
回答1:
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.
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 whole dump of the repository into your local drive and try to play with it.
- Try to use subgit instead.
来源:https://stackoverflow.com/questions/31728400/how-to-debug-git-svn-fetch-invalid-xml