diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-03-16 07:27:29 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-03-22 20:11:15 +0100 |
commit | 4cf3ac42c84d3be00ed923286c7e1f8adda886f6 (patch) | |
tree | 33ed5325a1a0f2bbe2d919d0e9585a1951324333 /buildconfig | |
parent | d16c6b0e691061f404eb5bab2004504918db4de3 (diff) | |
download | PrismLauncher-4cf3ac42c84d3be00ed923286c7e1f8adda886f6.tar.gz PrismLauncher-4cf3ac42c84d3be00ed923286c7e1f8adda886f6.tar.bz2 PrismLauncher-4cf3ac42c84d3be00ed923286c7e1f8adda886f6.zip |
Merge pull request #280 from oynqr/gitdir-notfound-check
Add GITDIR-NOTFOUND check
Diffstat (limited to 'buildconfig')
-rw-r--r-- | buildconfig/BuildConfig.cpp.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in index d1bd4d05..5c374508 100644 --- a/buildconfig/BuildConfig.cpp.in +++ b/buildconfig/BuildConfig.cpp.in @@ -30,7 +30,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/"); |