diff --git a/sleepyhead/sleepyhead.pro b/sleepyhead/sleepyhead.pro index 7a8b1f3b..9e48c449 100644 --- a/sleepyhead/sleepyhead.pro +++ b/sleepyhead/sleepyhead.pro @@ -38,10 +38,11 @@ TEMPLATE = app exists(../.git):{ - DEFINES += GIT_BRANCH=\\\"$$system(git rev-parse --abbrev-ref HEAD)\\\" - DEFINES += GIT_REVISION=\\\"$$system(git rev-parse HEAD)\\\" + GIT_BRANCH=$$system(git rev-parse --abbrev-ref HEAD) + DEFINES += GIT_BRANCH=\\\"$$GIT_BRANCH\" + DEFINES += GIT_REVISION=\\\"$$system(git rev-parse HEAD)\" - equals($$system(git rev-parse --abbrev-ref HEAD),"unstable"):DEFINES += UNSTABLE_BUILD + contains(GIT_BRANCH,"unstable"):DEFINES += UNSTABLE_BUILD } else { DEFINES += GIT_BRANCH=\\\"UNKNOWN\\\"