From beb8bd342518d7ea5a8830d3ae16ff045124b731 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Sun, 11 Feb 2018 22:32:30 +0000 Subject: [PATCH] Make sure tags are migrated. --- contrib/migrate-svn-git | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/contrib/migrate-svn-git b/contrib/migrate-svn-git index df7b1b1..3639274 100755 --- a/contrib/migrate-svn-git +++ b/contrib/migrate-svn-git @@ -14,13 +14,19 @@ EOF git svn clone http://svn.savannah.nongnu.org/svn/sysvinit/sysvinit \ --authors-file=$authorsmap \ --no-metadata \ - -t --tags=sysvinit/tags -T trunk \ + --tags=tags \ + --trunk=trunk \ + --prefix=sysvinit/ \ sysvinit-git - - - 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