From 1e4ba6a668b22fdbac06c684d9f501bc1e2bfddb Mon Sep 17 00:00:00 2001 From: GriffinR Date: Mon, 9 Sep 2024 19:02:37 -0400 Subject: [PATCH] Silence error if build directory is not a git repository --- porymap.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/porymap.pro b/porymap.pro index c83dd1d7..69186288 100644 --- a/porymap.pro +++ b/porymap.pro @@ -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\\\"