@matheusbsbs / matheus-bagliano / commits / 34c99da2a4
Fork 0

Substitute "/" with $opt_s in tag names as well as branch names

In 'git cvsimport' changes "/" to "-" (or $opt_s) in branch names, but not in tag names, which is inconsistent. Signed-off-by: Junio C Hamano <junkio@cox.net>

Joe English committed Jan 6, 2006 at 12:52 UTC 34c99da2a4324e9b4a9d3f59e8cd7114090bd22a
1 file changed +1
git-cvsimport.perl
+1
@@ -649,6 +649,7 @@ my $commit = sub {
649 my($xtag) = $tag;
650 $xtag =~ s/\s+\*\*.*$//; # Remove stuff like ** INVALID ** and ** FUNKY **
651 $xtag =~ tr/_/\./ if ( $opt_u );
652 + $xtag =~ s/[\/]/$opt_s/g;
653
654 my $pid = open2($in, $out, 'git-mktag');
655 print $out "object $cid\n".