Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error while migrating code from svn to git repository: Malformed network data: The XML response contains invalid XML: svn2git

Ran command git svn clone "SVN URL".

It works fine till 4568 commits, but then it gets after this commit giving the error stated in title.

like image 268
tatushar3 Avatar asked Jun 28 '16 08:06

tatushar3


People also ask

Which migration is actually recommended for migration from SVN to Git?

When moving to Git from another version control system like Subversion (SVN), we generally recommend that you perform a "tip migration", which migrates just the latest version of the repository contents, without including history.

What is SVN migration?

SVN is a popular tool for code hosting. It is used to manage different versions of files like source code, documentation and more. It keeps history and project data. Subversion is an open-source tool and comes under the Apache License.

What is Git SVN clone?

The git svn clone command transforms the trunk, branches, and tags in your SVN repository into a new Git repository. Depending on the structure of your SVN repo, the command needs to be configured differently.


1 Answers

this seems to be because the default log-window-size is too small.

When you get error, from the new git repo, try running: git svn fetch --log-window-size=4000

You can experiment with the actual number, but 4000 was the magic number for me.

like image 156
jlee Avatar answered Oct 14 '22 02:10

jlee