Browse Source

Merge branch 'gh/cvsimport-user'

* gh/cvsimport-user:
  git-cvsimport: fix handling of user name when it is not set in CVSROOT
maint
Junio C Hamano 17 years ago
parent
commit
e318f60723
  1. 3
      git-cvsimport.perl

3
git-cvsimport.perl

@ -223,7 +223,8 @@ sub conn { @@ -223,7 +223,8 @@ sub conn {
}
}

$user="anonymous" unless defined $user;
# if username is not explicit in CVSROOT, then use current user, as cvs would
$user=(getlogin() || $ENV{'LOGNAME'} || $ENV{'USER'} || "anonymous") unless $user;
my $rr2 = "-";
unless ($port) {
$rr2 = ":pserver:$user\@$serv:$repo";

Loading…
Cancel
Save