]> asedeno.scripts.mit.edu Git - git.git/commitdiff
(cvs|svn)import: Ask git-tag to overwrite old tags.
authorMichael Smith <msmith@cbnco.com>
Fri, 7 Sep 2007 21:35:07 +0000 (17:35 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 8 Sep 2007 04:02:39 +0000 (21:02 -0700)
If the tag was moved in CVS or SVN history, it will be moved in the
imported history as well. Tag history is not tracked.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsimport.perl
git-svnimport.perl

index ba23eb8eebdb841139062d4221c87515b96d8729..2954fb846e3372a648124d92b7c1a1ccbd44306f 100755 (executable)
@@ -779,7 +779,7 @@ sub commit {
                $xtag =~ tr/_/\./ if ( $opt_u );
                $xtag =~ s/[\/]/$opt_s/g;
 
-               system('git-tag', $xtag, $cid) == 0
+               system('git-tag', '-f', $xtag, $cid) == 0
                        or die "Cannot create tag $xtag: $!\n";
 
                print "Created tag '$xtag' on '$branch'\n" if $opt_v;
index 8c17fb5ae240c0335ce211b19d516f54e145065f..d3ad5b904f3d025aaf89aa5a7ef2e6464fd9b5b8 100755 (executable)
@@ -873,7 +873,7 @@ sub commit {
 
                $dest =~ tr/_/\./ if $opt_u;
 
-               system('git-tag', $dest, $cid) == 0
+               system('git-tag', '-f', $dest, $cid) == 0
                        or die "Cannot create tag $dest: $!\n";
 
                print "Created tag '$dest' on '$branch'\n" if $opt_v;