From 9ddbaaf7e8b844200b5d33c7b4702beaf201c55f Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sat, 12 Feb 2022 19:04:22 +0100 Subject: [PATCH] feat: use commit hash for channel if ref not available --- buildconfig/BuildConfig.cpp.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in index 074ce8de..0ffc9326 100644 --- a/buildconfig/BuildConfig.cpp.in +++ b/buildconfig/BuildConfig.cpp.in @@ -38,6 +38,10 @@ Config::Config() UPDATER_ENABLED = true; } } + else if (!GIT_COMMIT.isEmpty()) + { + VERSION_CHANNEL = GIT_COMMIT.mid(0, 8); + } else { VERSION_CHANNEL = QObject::tr("unknown");