Merge pull request #146 from phl0/shortGIT

Short git
This commit is contained in:
Florian (DF2ET) 2017-04-12 16:44:24 +02:00 committed by GitHub
commit ec42b59a10

View file

@ -823,8 +823,8 @@ function decodeAlias($logLine) {
function getGitVersion(){ function getGitVersion(){
if (file_exists(".git")) { if (file_exists(".git")) {
exec("git rev-parse HEAD", $output); exec("git rev-parse --short HEAD", $output);
return 'GitID #<a href="https://github.com/dg9vh/MMDVMHost-Dashboard/commit/'.substr($output[0],0,7).'">'.substr($output[0],0,7).'</a>'; return 'GitID #<a href="https://github.com/dg9vh/MMDVMHost-Dashboard/commit/'.$output[0].'" target="_blank">'.$output[0].'</a>';
} else { } else {
return 'GitID unknown'; return 'GitID unknown';
} }