(cvs|svn)import: Ask git-tag to overwrite old tags.
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>
Michael Smith committed
Sep 7, 2007 at 17:35 UTC
ee834cf0c7de68557bc5c30552fce3e55f52e109
2 files changed
+2
-2
git-cvsimport.perl
+1
-1
@@ -779,7 +779,7 @@ sub commit {
779
$xtag =~ tr/_/\./ if ( $opt_u );
780
$xtag =~ s/[\/]/$opt_s/g;
781
782
- system('git-tag', $xtag, $cid) == 0
782
+ system('git-tag', '-f', $xtag, $cid) == 0
783
or die "Cannot create tag $xtag: $!\n";
784
785
print "Created tag '$xtag' on '$branch'\n" if $opt_v;
git-svnimport.perl
+1
-1
@@ -873,7 +873,7 @@ sub commit {
873
874
$dest =~ tr/_/\./ if $opt_u;
875
876
- system('git-tag', $dest, $cid) == 0
876
+ system('git-tag', '-f', $dest, $cid) == 0
877
or die "Cannot create tag $dest: $!\n";
878
879
print "Created tag '$dest' on '$branch'\n" if $opt_v;