From 8362039f67b90768c5790c246db3b61c90c3c36e Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 6 Jul 2016 18:29:41 -0500 Subject: [PATCH] Support older versions of git --- includes/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/common.php b/includes/common.php index d7a0a95102..f8c18583f2 100644 --- a/includes/common.php +++ b/includes/common.php @@ -1036,7 +1036,7 @@ function version_info($remote=true) { curl_setopt($api, CURLOPT_RETURNTRANSFER, 1); $output['github'] = json_decode(curl_exec($api),true); } - list($local_sha, $local_date) = explode('|', rtrim(`git show --pretty='%H|%cI' -s HEAD`)); + list($local_sha, $local_date) = explode('|', rtrim(`git show --pretty='%H|%ci' -s HEAD`)); $output['local_sha'] = $local_sha; $output['local_date'] = $local_date; $output['local_branch'] = rtrim(`git rev-parse --abbrev-ref HEAD`);