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>
(cherry picked from commit 2d00a727f6)
This commit is contained in:
flow 2023-06-17 11:04:36 -03:00 committed by github-actions[bot]
parent 34d80a8c75
commit 1d75c58d6c

View File

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