Skip to contentSkip to conversation

CI: Fix VERSION_REV and VERSION_BRANCH

PATCH New Luben Tuikov 1 participant 1 message Nov 23, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CI: Fix VERSION_REV and VERSION_BRANCH

Fix the output of the version revision and version branch, so that they're no longer empty after the listed change below.

Cc Dmitrii Galantsev <[email protected]>
Cc Tom StDenis <[email protected]>
Fixes 7facf591681772 ("CI: Release RPM and DEB packages")
---
 cmake_modules/GitVersion.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
cmake_modules/GitVersion.cmake +2 -2
index 7db3ab32130bdc..44c0a67bbad3b0 100644
@@ -137,9 +137,9 @@ function(get_version_from_tag DEFAULT_VERSION_STRING)
         "${VERSION_MINOR}"
         PARENT_SCOPE)
     set(VERSION_REV
-        "${VERSION_REV}"
+        "${GIT_TAG_STRING}"
         PARENT_SCOPE)
     set(VERSION_BRANCH
-        "${VERSION_BRANCH}"
+        "${GIT_BRANCH}"
         PARENT_SCOPE)
 endfunction()

base-commit: ae9fc1ded740af789ea56c93a7a946b6206fed9a

Signature · 1 line
2.38.1