Skip to content

Commit

Permalink
Silence error if build directory is not a git repository
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinRichards committed Sep 9, 2024
1 parent 7c8d5d0 commit 1e4ba6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion porymap.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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\\\"

Expand Down

0 comments on commit 1e4ba6a

Please sign in to comment.