summaryrefslogtreecommitdiff
path: root/net-mgmt/librenms/files/patch-includes_common.php
blob: 974dc867c25719e2349d9317418fd2eb7bce51da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- includes/common.php.orig	2017-03-26 12:06:00 UTC
+++ includes/common.php
@@ -1098,10 +1098,8 @@ function version_info($remote = true)
             curl_setopt($api, CURLOPT_CONNECTTIMEOUT, 5);
             $output['github'] = json_decode(curl_exec($api), true);
         }
-        list($local_sha, $local_date) = explode('|', rtrim(`git show --pretty='%H|%ct' -s HEAD`));
-        $output['local_sha']    = $local_sha;
+        $output['local_sha']    = '%%PORTVERSION%%';
         $output['local_date']   = $local_date;
-        $output['local_branch'] = rtrim(`git rev-parse --abbrev-ref HEAD`);
     }
     $output['db_schema']   = dbFetchCell('SELECT version FROM dbSchema');
     $output['php_ver']     = phpversion();