(minor) change to version reporting
This commit is contained in:
parent
37584908eb
commit
d2c10e87d8
2 changed files with 8 additions and 5 deletions
|
@ -512,8 +512,11 @@ sub setup_gitweb_access
|
|||
|
||||
sub report_version {
|
||||
my($user) = @_;
|
||||
print "hello $user, the gitolite version here is ";
|
||||
print slurp( ($GL_PACKAGE_CONF || "$GL_ADMINDIR/conf") . "/VERSION" );
|
||||
my $gl_version = slurp( ($GL_PACKAGE_CONF || "$GL_ADMINDIR/conf") . "/VERSION" );
|
||||
chomp($gl_version);
|
||||
my $git_version = `git --version`;
|
||||
$git_version =~ s/^git version //;
|
||||
print "hello $user, this is gitolite $gl_version running on git $git_version";
|
||||
}
|
||||
|
||||
sub perm_code {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue