]> git.sur5r.net Git - i3/i3/commitdiff
Merge pull request #3659 from orestisf1993/git-log-to-rev-list-3656
authorIngo Bürk <admin@airblader.de>
Fri, 22 Mar 2019 13:53:59 +0000 (14:53 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Mar 2019 13:53:59 +0000 (14:53 +0100)
Use git plumbing commands to get the I3_VERSION

configure.ac

index 23d8d878348df23581be4268c55d60678cd06a33..ec1d9d0307295bc43cb8010bccb0150dcddc2e4f 100644 (file)
@@ -32,7 +32,7 @@ AX_EXTEND_SRCDIR
 AS_IF([test -d ${srcdir}/.git],
       [
         VERSION="$(git -C ${srcdir} describe --tags --abbrev=0)"
-        I3_VERSION="$(git -C ${srcdir} describe --tags --always) ($(git -C ${srcdir} log --pretty=format:%cd --date=short -n1), branch \\\"$(git -C ${srcdir} describe --tags --always --all | sed s:heads/::)\\\")"
+        I3_VERSION="$(git -C ${srcdir} describe --tags --always) ($(git -C ${srcdir} rev-list --format=%cd --date=short -n1 $(git rev-parse HEAD) | tail -n1), branch \\\"$(git -C ${srcdir} describe --tags --always --all | sed s:heads/::)\\\")"
         # Mirrors what libi3/is_debug_build.c does:
         is_release=$(test $(echo "${I3_VERSION}" | cut -d '(' -f 1 | wc -m) -lt 10 && echo yes || echo no)
       ],