Skip to content

Commit

Permalink
Merge pull request redpanda-data#14615 from vbotbuildovich/backport-p…
Browse files Browse the repository at this point in the history
…r-14611-v22.3.x-185

[v22.3.x] cmake: exclude operator tags when determining version
  • Loading branch information
rockwotj authored Nov 2, 2023
2 parents db0f35b + 7b9efe0 commit 97734d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ option(ENABLE_GIT_HASH "Build with Git hash in metadata" OFF)
if(${ENABLE_GIT_VERSION})
include(GetGitRevisionDescription)
if(${ENABLE_GIT_HASH})
git_describe(GIT_VER --always)
git_describe(GIT_VER --always --exclude=operator/*)
else()
# If displaying a version, make sure it also doesn't display a hash.
git_describe(GIT_VER --always --abbrev=0)
git_describe(GIT_VER --always --abbrev=0 --exclude=operator/*)
endif()
else()
if(${ENABLE_GIT_HASH})
Expand Down

0 comments on commit 97734d0

Please sign in to comment.