Browse Source

Add --tags parameter to git describe command

This commit contains a workaround for git describe command using only
annotated tags and not all tags known to repository when generating its
output. Adding such parameter to git command line should change its
behavior to more proper one.

Signed-off-by: Juozas <juozaspo@gmail.com>
Reference-to: https://github.com/tenacityteam/tenacity/pull/586
pull/633/head
Juozas 10 months ago
committed by GitHub
parent
commit
0a71cad2df
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CMakeLists.txt

2
CMakeLists.txt

@ -58,7 +58,7 @@ set( GIT_DESCRIBE "unknown" )
if( GIT_FOUND )
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --abbrev=7
COMMAND ${GIT_EXECUTABLE} describe --tags --abbrev=7
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_DESCRIBE
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET

Loading…
Cancel
Save