fix: hide git commit when the build doesn't have git stuff support

This fixes the Git commit string being "GITDIR-NOTFOUND" on the About
page when building a package from the bundled source archive.

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2023-06-17 11:04:36 -03:00
parent fd9a8d1551
commit 2d00a727f6
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -82,6 +82,7 @@ Config::Config()
{
GIT_REFSPEC = "refs/heads/stable";
GIT_TAG = versionString();
GIT_COMMIT = "";
}
if (GIT_REFSPEC.startsWith("refs/heads/"))