(minor) change to version reporting

This commit is contained in:
Sitaram Chamarty 2011-09-10 10:53:05 +05:30
parent 37584908eb
commit d2c10e87d8
2 changed files with 8 additions and 5 deletions

View file

@ -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 {