mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-21 17:45:44 -05:00
Silence error if build directory is not a git repository
This commit is contained in:
parent
7c8d5d0d63
commit
1e4ba6a668
|
|
@ -22,7 +22,7 @@ QMAKE_TARGET_BUNDLE_PREFIX = com.pret
|
|||
# Get latest commit hash if we can (to display alongside version information).
|
||||
GIT_PATH = $$system(which git)
|
||||
!isEmpty(GIT_PATH) {
|
||||
LATEST_COMMIT = $$system($$GIT_PATH rev-parse --short HEAD)
|
||||
LATEST_COMMIT = $$system($$GIT_PATH rev-parse --short HEAD 2>/dev/null)
|
||||
}
|
||||
DEFINES += PORYMAP_LATEST_COMMIT=\\\"$$LATEST_COMMIT\\\"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user