mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Invoke git differently in QMake to get at revision number
This commit is contained in:
parent
ffa5dcb9cb
commit
71ae0e8a72
@ -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"):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user