Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'gh/cvsimport-user'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 14 Nov 2007 22:03:27 +0000
(14:03 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 14 Nov 2007 22:03:27 +0000
(14:03 -0800)
* gh/cvsimport-user:
git-cvsimport: fix handling of user name when it is not set in CVSROOT
git-cvsimport.perl
patch
|
blob
|
history
raw
(from parent 1:
93cbbd7
)
diff --git
a/git-cvsimport.perl
b/git-cvsimport.perl
index e4bc2b54f68930df217751975e32b4224f8d765c..efa6a0c41ad5a253047789e8ac2a30bf57f8646d 100755
(executable)
--- a/
git-cvsimport.perl
+++ b/
git-cvsimport.perl
@@
-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";