diff --git a/contrib/migrate-svn-git b/contrib/migrate-svn-git index 6a771d0..91090cc 100755 --- a/contrib/migrate-svn-git +++ b/contrib/migrate-svn-git @@ -9,23 +9,21 @@ pere = Petter Reinholdtsen wfink = Werner Fink EOF -git svn clone http://svn.savannah.nongnu.org/svn/sysvinit/sysvinit \ - --authors-file=$authorsmap \ - --no-metadata \ - --tags=tags \ - --trunk=trunk \ - --prefix=sysvinit/ \ - sysvinit-git +for p in sysvinit startpar insserv; do + git svn clone http://svn.savannah.nongnu.org/svn/sysvinit/$p \ + --authors-file=$authorsmap \ + --no-metadata \ + --tags=tags \ + --trunk=trunk \ + --prefix=$p/ \ + $p-git + + ( + cd $p-git + for tag in `git branch -r | grep "tags/" | sed "s/ $p\/tags\///"`; do + git tag -a -m"Converting SVN tags" $tag refs/remotes/$p/tags/$tag + done + git remote add origin ssh://git.savannah.gnu.org:/srv/git/$p.git + ) +done rm $authorsmap - -( - cd sysvinit-git - for tag in `git branch -r | grep "tags/" | sed 's/ sysvinit\/tags\///'`; do - git tag -a -m"Converting SVN tags" $tag refs/remotes/sysvinit/tags/$tag - done -) - -( - cd sysvinit-git - git remote add origin ssh://git.savannah.gnu.org:/srv/git/sysvinit.git -)