try: info command header enhanced
This commit is contained in:
parent
9c460a4b9a
commit
5db29062f5
2 changed files with 4 additions and 2 deletions
|
@ -47,7 +47,9 @@ $patt = shift || '.';
|
|||
my $user = $ENV{GL_USER} or _die "GL_USER not set";
|
||||
my $ref = 'any';
|
||||
|
||||
print "hello $user, this is gitolite3 " . version() . " on git " . substr( `git --version`, 12 ) . "\n";
|
||||
chomp(my $hn = `hostname -s`);
|
||||
my $gv = substr( `git --version`, 12 );
|
||||
print "hello $user, this is $ENV{USER}\@$hn running gitolite3 " . version() . " on git $gv\n";
|
||||
|
||||
my $lr = lister_dispatch('list-repos');
|
||||
|
||||
|
|
2
t/info.t
2
t/info.t
|
@ -34,7 +34,7 @@ try "
|
|||
";
|
||||
|
||||
# GS == greeting string
|
||||
try "DEF GS = /hello %1, this is gitolite/";
|
||||
try "DEF GS = /hello %1, this is $ENV{USER}\\@.* running gitolite/";
|
||||
|
||||
try "
|
||||
glt info u1; ok; GS u1
|
||||
|
|
Loading…
Add table
Reference in a new issue