make the commid_id of whl packages to have same length

Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
This commit is contained in:
zhoufeng 2020-06-14 17:13:07 +08:00
parent 05eeedec36
commit 54f1c6e3cb
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ endif ()
# get git commit id # get git commit id
set(GIT_COMMIT_ID "") set(GIT_COMMIT_ID "")
execute_process( execute_process(
COMMAND ${GIT} log --format='[sha1]:%h,[branch]:%d' -1 COMMAND ${GIT} log --format='[sha1]:%h,[branch]:%d' --abbrev=8 -1
OUTPUT_VARIABLE GIT_COMMIT_ID OUTPUT_VARIABLE GIT_COMMIT_ID
WORKING_DIRECTORY ${MS_ROOT_DIR} WORKING_DIRECTORY ${MS_ROOT_DIR}
ERROR_QUIET) ERROR_QUIET)