Skip to content

Commit

Permalink
(cvs|svn)import: Ask git-tag to overwrite old tags.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Smith authored and Junio C Hamano committed Sep 8, 2007
1 parent 451e593 commit ee834cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion git-cvsimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion git-svnimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ee834cf

Please sign in to comment.