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\\\""'