Browse Source

Use older git syntax

Turns out that git v1.7 does not support `--date=uni`, but `%ct` should
be roughly equivalent.
Alois Mahdal 6 years ago
parent
commit
e84909788f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/include/facts.sh

+ 1
- 1
src/include/facts.sh View File

@@ -55,7 +55,7 @@ git_fact() {
55 55
             git log -1 --pretty=format:%h HEAD
56 56
             ;;
57 57
         latest_cdate)
58
-            git log -1 --format=%cd --date=unix HEAD
58
+            git log -1 --format=%ct HEAD
59 59
             ;;
60 60
         *)
61 61
             warn "unknown git fact asked: $fact_name"