Skip to content

Commit 08148be

Browse files
author
Yi Wang
committed
Use short Git commit id as the version in wheel filename if there is no Git tag
1 parent 20b416d commit 08148be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ if(NOT ${GIT_RESULT})
8383
set(PADDLE_VERSION ${GIT_TAG_NAME})
8484
else()
8585
execute_process(
86-
COMMAND ${GIT_EXECUTABLE} log -1 --format=%H
86+
COMMAND ${GIT_EXECUTABLE} log -1 --format=%h
8787
WORKING_DIRECTORY ${PROJ_ROOT}
8888
OUTPUT_VARIABLE GIT_SHA1
8989
RESULT_VARIABLE GIT_RESULT

0 commit comments

Comments
 (0)