Save some substrs
This commit is contained in:
parent
8d61ff736e
commit
739b5725f2
1 changed files with 2 additions and 2 deletions
|
@ -823,8 +823,8 @@ function decodeAlias($logLine) {
|
|||
|
||||
function getGitVersion(){
|
||||
if (file_exists(".git")) {
|
||||
exec("git rev-parse HEAD", $output);
|
||||
return 'GitID #<a href="https://github.com/dg9vh/MMDVMHost-Dashboard/commit/'.substr($output[0],0,7).'">'.substr($output[0],0,7).'</a>';
|
||||
exec("git rev-parse --short HEAD", $output);
|
||||
return 'GitID #<a href="https://github.com/dg9vh/MMDVMHost-Dashboard/commit/'.$output[0].' target="_blank">'.$output[0].'</a>';
|
||||
} else {
|
||||
return 'GitID unknown';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue