diff --git a/include/functions.php b/include/functions.php index 5c3e724..2a91dec 100644 --- a/include/functions.php +++ b/include/functions.php @@ -823,8 +823,8 @@ function decodeAlias($logLine) { function getGitVersion(){ if (file_exists(".git")) { - exec("git rev-parse HEAD", $output); - return 'GitID #'.substr($output[0],0,7).''; + exec("git rev-parse --short HEAD", $output); + return 'GitID #'.$output[0].''; } else { return 'GitID unknown'; }