зеркало из https://github.com/microsoft/git.git
Merge branch 'gh/cvsimport-user'
* gh/cvsimport-user: git-cvsimport: fix handling of user name when it is not set in CVSROOT
This commit is contained in:
Коммит
e318f60723
|
@ -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";
|
||||
|
|
Загрузка…
Ссылка в новой задаче