From 71ae0e8a720c6cf9802027e8a93559f64981de30 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 28 Feb 2016 19:21:38 +1000 Subject: [PATCH] Invoke git differently in QMake to get at revision number --- sleepyhead/sleepyhead.pro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sleepyhead/sleepyhead.pro b/sleepyhead/sleepyhead.pro index 22921641..da460760 100644 --- a/sleepyhead/sleepyhead.pro +++ b/sleepyhead/sleepyhead.pro @@ -55,7 +55,8 @@ exists(../.git):{ GIT_BRANCH=$$system(git rev-parse --abbrev-ref HEAD) DEFINES += GIT_BRANCH=\\\"$$GIT_BRANCH\\\" - DEFINES += GIT_REVISION=\\\"$$system(git rev-parse --short HEAD)\\\" +# DEFINES += GIT_REVISION=\\\"$$system(git rev-parse --short HEAD)\\\" + DEFINES += GIT_REVISION="\\\"$(shell git -C \""$$_PRO_FILE_PWD_"\" rev-parse --short HEAD)\\\"" # contains(GIT_BRANCH,"testing"):