August 7, 2010
We decided to move bajos from github to googlecode at therefore I need to port our repo. The task import from git to svn could be done in this way:
From http://code.google.com/p/support/wiki/ImportingFromGit
Most of this is copied from the google page, but they are writing about continuous mirroring, I want to show, that the same procedure is useful for a one time import!
The Subversion repository must be nonempty. A new Google Code project contains one revision by default, but if you reset it, you should also create a first revision.
Naturally, your official source tree lives on some Git-capable server, which we denote by $GIT_REPO. http://code.google.com/hosting/createProject creating a new Google Code project, initialize an intermediary repository and fetch the Git tree:
$ git svn clone --username you https://your-project.googlecode.com/svn/
$ GIT_REPO=git@github.com:hwr-berlin/bajos.git #example!!!
$ cd svn
$ git fetch $GIT_REPO
Create a temporary branch for the fetched repository, and tag its head:
$ git branch tmp $(cut -b-40 .git/FETCH_HEAD) $ git tag -a -m "Last fetch" last tmp