From 54f1c6e3cbc34000fa4ef806b4072ca6525740b2 Mon Sep 17 00:00:00 2001 From: zhoufeng Date: Sun, 14 Jun 2020 17:13:07 +0800 Subject: [PATCH] make the commid_id of whl packages to have same length Signed-off-by: zhoufeng --- cmake/package_script.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/package_script.cmake b/cmake/package_script.cmake index dcc8ee0ad..94ffc71b4 100644 --- a/cmake/package_script.cmake +++ b/cmake/package_script.cmake @@ -51,7 +51,7 @@ endif () # get git commit id set(GIT_COMMIT_ID "") 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 WORKING_DIRECTORY ${MS_ROOT_DIR} ERROR_QUIET) -- GitLab