aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-03-16 07:27:29 +0100
committerGitHub <noreply@github.com>2022-03-16 07:27:29 +0100
commit00c3336ec8436fcaa79343fbd70c0e5b4371b062 (patch)
tree1432ab4529d3046085146b1c634ed2d768c0e7bd
parentaedb513c9ee46a50c9208637dc741b322f418cf5 (diff)
parenta268ac71410c228d0d76cd2a9cf9a6057b1f9085 (diff)
downloadPrismLauncher-00c3336ec8436fcaa79343fbd70c0e5b4371b062.tar.gz
PrismLauncher-00c3336ec8436fcaa79343fbd70c0e5b4371b062.tar.bz2
PrismLauncher-00c3336ec8436fcaa79343fbd70c0e5b4371b062.zip
Merge pull request #280 from oynqr/gitdir-notfound-check
Add GITDIR-NOTFOUND check
-rw-r--r--buildconfig/BuildConfig.cpp.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in
index 6524fb5d..4625b1bf 100644
--- a/buildconfig/BuildConfig.cpp.in
+++ b/buildconfig/BuildConfig.cpp.in
@@ -28,7 +28,11 @@ Config::Config()
GIT_COMMIT = "@Launcher_GIT_COMMIT@";
GIT_REFSPEC = "@Launcher_GIT_REFSPEC@";
- if(GIT_REFSPEC.startsWith("refs/heads/"))
+ if (GIT_REFSPEC == QStringLiteral("GITDIR-NOTFOUND"))
+ {
+ VERSION_CHANNEL = QStringLiteral("stable");
+ }
+ else if(GIT_REFSPEC.startsWith("refs/heads/"))
{
VERSION_CHANNEL = GIT_REFSPEC;
VERSION_CHANNEL.remove("refs/heads/");