From 739b5725f2b3d3f09e4c9cd4eb8dcc1198775b48 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 12 Apr 2017 16:39:14 +0200 Subject: [PATCH] Save some substrs --- include/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions.php b/include/functions.php index 5c3e724..cac8e18 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'; }