Change version to use default short git rev length, defined by core.abbrev in git-config, which is 7.
This commit is contained in:
parent
07dad10251
commit
2cb41e3c90
|
@ -41,7 +41,7 @@ if (NOT DEFINED BARRIER_REVISION)
|
|||
string (SUBSTRING $ENV{GIT_COMMIT} 0 8 BARRIER_REVISION)
|
||||
elseif (BARRIER_VERSION_STAGE STREQUAL "snapshot")
|
||||
execute_process (
|
||||
COMMAND git rev-parse --short=8 HEAD
|
||||
COMMAND git rev-parse --short HEAD
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE BARRIER_REVISION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
|
|
Loading…
Reference in New Issue