From 08148beebf78a0e759aa9d4d6c095a53820995dd Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Wed, 30 Nov 2016 18:06:32 -0800 Subject: [PATCH] Use short Git commit id as the version in wheel filename if there is no Git tag --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e39efcad..4ac9f70ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 -- GitLab