minor fix to info command output under httpd...
when running under httpd, $ENV{USER} is not set, so we use a (hopefully informative) default to print. Thanks to Thomas Hager (duke at sigsegv dot at) for catching this.
This commit is contained in:
parent
c145528849
commit
49d132a969
|
@ -52,7 +52,7 @@ sub print_version {
|
|||
chomp( my $hn = `hostname -s 2>/dev/null || hostname` );
|
||||
my $gv = substr( `git --version`, 12 );
|
||||
$ENV{GL_USER} or _die "GL_USER not set";
|
||||
print "hello $ENV{GL_USER}, this is $ENV{USER}\@$hn running gitolite3 " . version() . " on git $gv\n";
|
||||
print "hello $ENV{GL_USER}, this is " . ($ENV{USER} || "httpd") . "\@$hn running gitolite3 " . version() . " on git $gv\n";
|
||||
}
|
||||
|
||||
sub print_patterns {
|
||||
|
|
Loading…
Reference in a new issue