4

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.

7
  • What version of git are you using? Commented Aug 4, 2015 at 8:31
  • is this to any help linuxproblem.org/art_22.html Commented Aug 4, 2015 at 8:51
  • @VonC: git version 1.9.1 - okay I guess that is pretty damn old. Commented Aug 4, 2015 at 10:52
  • On which OS are you using this command? Any chance to check if it would work with a more recent version of git? Commented Aug 4, 2015 at 13:46
  • I just upgraded to Ubuntu 15.04. Git is now at 2.1.4 - problem persists. Commented Aug 4, 2015 at 19:54

1 Answer 1

4
+50

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:

  1. Use a tool to capture http traffic
  2. If you have direct access to the repository (not via https), try using it
  3. Use svnrdump to download whole dump of the repository into your local drive and try to play with it.
  4. Try to use subgit instead.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.