X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-cvsimport.perl;h=cacbfc0259fd1ae353117d93e345cd8c4dd41188;hb=c30e699fc509f43f459c17d3148e7d866fb9157a;hp=bdac5d51b6dfb721bb648e455cb8f3c5078217e4;hpb=3e08f5db65bcfe3ad238ee0de1cac2da84953cf3;p=git.git diff --git a/git-cvsimport.perl b/git-cvsimport.perl index bdac5d51b..cacbfc025 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -227,6 +227,7 @@ sub conn { $proxyport = $1; } } + $repo ||= '/'; # if username is not explicit in CVSROOT, then use current user, as cvs would $user=(getlogin() || $ENV{'LOGNAME'} || $ENV{'USER'} || "anonymous") unless $user; @@ -780,6 +781,7 @@ sub commit { $xtag =~ s/\s+\*\*.*$//; # Remove stuff like ** INVALID ** and ** FUNKY ** $xtag =~ tr/_/\./ if ( $opt_u ); $xtag =~ s/[\/]/$opt_s/g; + $xtag =~ s/\[//g; system('git-tag', '-f', $xtag, $cid) == 0 or die "Cannot create tag $xtag: $!\n";