summaryrefslogtreecommitdiff
path: root/classes/config.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-02 07:35:20 +0300
committerAndrew Dolgov <[email protected]>2021-03-02 07:35:20 +0300
commit51ed72efab87c840e1f1bad8ea61712928aeec92 (patch)
treeca0a34a78e03877faf853e35dae60b927e3260b2 /classes/config.php
parent031ee47a3e3de0d86fd5f951af3a136d85b387c5 (diff)
use dash instead of space when invoking git to get version
Diffstat (limited to 'classes/config.php')
-rw-r--r--classes/config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/config.php b/classes/config.php
index 0f20fa27c..8761863f5 100644
--- a/classes/config.php
+++ b/classes/config.php
@@ -182,7 +182,7 @@ class Config {
"timestamp" => 0,
];
- $proc = proc_open("git --no-pager log --pretty=\"%ct %h\" -n1 HEAD",
+ $proc = proc_open("git --no-pager log --pretty=\"%ct-%h\" -n1 HEAD",
$descriptorspec, $pipes, $dir);
if (is_resource($proc)) {
@@ -193,7 +193,7 @@ class Config {
$rv["status"] = $status;
if ($status == 0) {
- list($timestamp, $commit) = explode(" ", $stdout);
+ list($timestamp, $commit) = explode("-", $stdout);
$rv["version"] = strftime("%y.%m", (int)$timestamp) . "-$commit";
$rv["commit"] = $commit;