Force 8 digits to display git object names
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
64d5b3af4e
commit
b63a37281d
|
@ -24,7 +24,7 @@ if(DEFINED ENV{GIT_HASH})
|
|||
set(GIT_HASH "$ENV{GIT_HASH}")
|
||||
else()
|
||||
execute_process(
|
||||
COMMAND git --no-pager describe --always --dirty
|
||||
COMMAND git --no-pager describe --always --abbrev=8 --dirty
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE GIT_HASH
|
||||
ERROR_QUIET
|
||||
|
@ -36,7 +36,7 @@ if(DEFINED ENV{GIT_VERSION})
|
|||
set(GIT_VERSION "$ENV{GIT_VERSION}")
|
||||
else()
|
||||
execute_process(
|
||||
COMMAND git --no-pager describe --tags --always --dirty
|
||||
COMMAND git --no-pager describe --tags --always --abbrev=8 --dirty
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE GIT_VERSION
|
||||
ERROR_QUIET
|
||||
|
|
Loading…
Reference in New Issue