From 2a8758252975080e2bb93f78314de899845fa38e Mon Sep 17 00:00:00 2001 From: Tom Steer Date: Sun, 13 Oct 2019 15:23:45 -0500 Subject: [PATCH] Fix Git Command line When a tagger value was present, multiline output caused problems --- sACNView.pro | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sACNView.pro b/sACNView.pro index 82008fe3..3fd6cc5b 100644 --- a/sACNView.pro +++ b/sACNView.pro @@ -38,10 +38,10 @@ include(translations.pri) GIT_COMMAND = git --git-dir $$shell_quote($$PWD/.git) --work-tree $$shell_quote($$PWD) GIT_VERSION = $$system($$GIT_COMMAND describe --always --tags) -GIT_DATE_DAY = $$system($$GIT_COMMAND show -s --date=format:\"%a\" --format=\"%cd\" $$GIT_VERSION) -GIT_DATE_DATE = $$system($$GIT_COMMAND show -s --date=format:\"%d\" --format=\"%cd\" $$GIT_VERSION) -GIT_DATE_MONTH = $$system($$GIT_COMMAND show -s --date=format:\"%b\" --format=\"%cd\" $$GIT_VERSION) -GIT_DATE_YEAR = $$system($$GIT_COMMAND show -s --date=format:\"%Y\" --format=\"%cd\" $$GIT_VERSION) +GIT_DATE_DAY = $$system($$GIT_COMMAND show -1 -s --date=format:\"%a\" --format=\"%cd\" $$GIT_VERSION) +GIT_DATE_DATE = $$system($$GIT_COMMAND show -1 -s --date=format:\"%d\" --format=\"%cd\" $$GIT_VERSION) +GIT_DATE_MONTH = $$system($$GIT_COMMAND show -1 -s --date=format:\"%b\" --format=\"%cd\" $$GIT_VERSION) +GIT_DATE_YEAR = $$system($$GIT_COMMAND show -1 -s --date=format:\"%Y\" --format=\"%cd\" $$GIT_VERSION) GIT_TAG = $$system($$GIT_COMMAND describe --abbrev=0 --always --tags) GIT_SHA1 = $$system($$GIT_COMMAND rev-parse --short HEAD)