fix: check if GIT_REFSPEC is empty
Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
01139c3b50
commit
f932ffcc5b
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ Config::Config()
|
||||||
// Assume that builds outside of Git repos are "stable"
|
// Assume that builds outside of Git repos are "stable"
|
||||||
if (GIT_REFSPEC == QStringLiteral("GITDIR-NOTFOUND")
|
if (GIT_REFSPEC == QStringLiteral("GITDIR-NOTFOUND")
|
||||||
|| GIT_TAG == QStringLiteral("GITDIR-NOTFOUND")
|
|| GIT_TAG == QStringLiteral("GITDIR-NOTFOUND")
|
||||||
|
|| GIT_REFSPEC == QStringLiteral("")
|
||||||
|| GIT_TAG == QStringLiteral("GIT-NOTFOUND"))
|
|| GIT_TAG == QStringLiteral("GIT-NOTFOUND"))
|
||||||
{
|
{
|
||||||
GIT_REFSPEC = "refs/heads/stable";
|
GIT_REFSPEC = "refs/heads/stable";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue