提交 08148bee 编写于 作者: Y Yi Wang

Use short Git commit id as the version in wheel filename if there is no Git tag

上级 20b416d2
......@@ -83,7 +83,7 @@ if(NOT ${GIT_RESULT})
set(PADDLE_VERSION ${GIT_TAG_NAME})
else()
execute_process(
COMMAND ${GIT_EXECUTABLE} log -1 --format=%H
COMMAND ${GIT_EXECUTABLE} log -1 --format=%h
WORKING_DIRECTORY ${PROJ_ROOT}
OUTPUT_VARIABLE GIT_SHA1
RESULT_VARIABLE GIT_RESULT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册