I am in the process of migrating svn repositories to git, using git svn clone, then pushing the clone to a remote origin to act as the new git repository.
Using this process I have successfully migrated 34 svn repos so far, but during the git svn clone process, 4 have failed due to the following error
Command:
git svn clone --authors-file=authors.txt svn+ssh://git@server/path/to/SVN/project/trunk/repo_name repo_name.git
Resulting in the error:
Svndiff data contains backward-sliding source view: Svndiff has backwards-sliding source views at /usr/libexec/git-core/git-svn line 5061
Has anyone encountered this error before and found a way around it, either forcing the git svn clone to ignore the error and continue, or to repair the SVN repo first?
I should probably add a little more background to this issue. I've been pointed in the direction of various tools to assist with the svn to git migration, but unfortunately most of these are a one way conversion and are not suitable for the task.
I have approximately 100 individual code bases to convert, and each of these are live systems in active development, so the migration will be a phased approach.
- Create live git clone of each svn repo -> keep in sync using git svn rebase, then push to remote origin master branch. git in read-only mode (for developers).
- Begin using git repo for code reviews rather than svn
- Start branching git repo for changes rather than svn, sync changes back to svn. svn in read only mode (for developers).
SVN will likely be used for the deploy/build process, so I cannot do a one time conversion and need to maintain the sync using git svn dcommit to push back at all stages.