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(){
|
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';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue