diff options
| author | seth <getchoo@tuta.io> | 2022-12-23 20:50:08 -0500 |
|---|---|---|
| committer | seth <getchoo@tuta.io> | 2022-12-23 20:50:08 -0500 |
| commit | f932ffcc5b2184bc29f6f9465b7e42dd2c4527d2 (patch) | |
| tree | d8640fb48e2c8cebc3cb8b2b35ab6fae9b45a228 | |
| parent | 01139c3b50eeb30787e87aeea37948b672763c73 (diff) | |
| download | PrismLauncher-f932ffcc5b2184bc29f6f9465b7e42dd2c4527d2.tar.gz PrismLauncher-f932ffcc5b2184bc29f6f9465b7e42dd2c4527d2.tar.bz2 PrismLauncher-f932ffcc5b2184bc29f6f9465b7e42dd2c4527d2.zip | |
fix: check if GIT_REFSPEC is empty
Signed-off-by: seth <getchoo@tuta.io>
| -rw-r--r-- | buildconfig/BuildConfig.cpp.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in index 02c021cf..35373189 100644 --- a/buildconfig/BuildConfig.cpp.in +++ b/buildconfig/BuildConfig.cpp.in @@ -77,6 +77,7 @@ Config::Config() // Assume that builds outside of Git repos are "stable" if (GIT_REFSPEC == QStringLiteral("GITDIR-NOTFOUND") || GIT_TAG == QStringLiteral("GITDIR-NOTFOUND") + || GIT_REFSPEC == QStringLiteral("") || GIT_TAG == QStringLiteral("GIT-NOTFOUND")) { GIT_REFSPEC = "refs/heads/stable"; |
