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

拥有回忆 提交于 2020-08-06 08:11:09

问题


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.


回答1:


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.




回答2:


git-svn is not the right tool for one-time conversions of repositories. It is a great tool if you want to use Git as frontend for an existing SVN server, but for one-time conversions you should not use git-svn, but svn2git which is much more suited for this use-case.

There are pleny tools called svn2git, the probably best one is the KDE one from https://github.com/svn-all-fast-export/svn2git. I strongly recommend using that svn2git tool. It is the best I know available out there and it is very flexible in what you can do with its rules files.

If you are not 100% about the history of your repository, svneverever from http://blog.hartwork.org/?p=763 is a great tool to investigate the history of an SVN repository when migrating it to Git.



来源:https://stackoverflow.com/questions/38071052/getting-error-while-migrating-code-from-svn-to-git-repository-malformed-network

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!