From 8eada7eaa30f7400516e8a4d5c81f6de4f502545 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Wed, 12 Jun 2019 08:28:28 +0200 Subject: [PATCH] fix git revision detection --- pri/defs.pri | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pri/defs.pri b/pri/defs.pri index dea4629df..de9ac2ce3 100644 --- a/pri/defs.pri +++ b/pri/defs.pri @@ -20,7 +20,7 @@ DISTFILES += ../../resources/scripts/uncrustify/uncrustify.cfg CODECFORTR = UTF-8 CODECFORSRC = UTF-8 -exists(.git) { +exists($PWD/../../.git) { APP_REVISION = $$system(git rev-parse --short HEAD) } @@ -33,4 +33,4 @@ equals(USE_WEBENGINE, false) { APP_REVISION = $$sprintf('%1-%2', $$APP_REVISION, nowebengine) } -DEFINES *= APP_REVISION='"\\\"$$APP_REVISION\\\""' \ No newline at end of file +DEFINES *= APP_REVISION='"\\\"$$APP_REVISION\\\""'