I am trying to use svn2git to migrate a SVN project to git. However I have problems preserving all the history. The reasons seems to be because the trunk was moved in the past. The command I am using is:
$ svn2git http://mysvnserver.com/myproject/iPhone/ --no-minimize-url --authors ../authors.txt
But this only gives me history going back to 2011. The project actually started in 2010. The projected started by looking like this:
myproject
trunk
branches
tags
But in 2011 it was changed to this:
myproject
iPhone
trunk
branches
tags
Android
trunk
branches
tags
The old trunk and branches went under the iPhone directory. The history I get start from when this move was done. If I do svn log in the iPhone directory I get the shortened history. But if I cd trunk; svn log then I get the full history.
I have no idea of how to get this history out. My idea was to somehow create a git repository with only the history of the trunk going all the way back to 2010. Then I would later pull this in as a branch in my main repo, and do a rebase to get the history correct. But I have had no luck creating this repo for just the trunk. I have tried:
$ svn2git http://mysvnserver.com/myproject/ --rootistrunk --authors ../authors.txt
and
$ svn2git http://mysvnserver.com/myproject/ --rootistrunk -no-minimize-url --authors ../authors.txt
without any success.