There was an error while loading. Please reload this page.
1 parent 86f6217 commit d893adfCopy full SHA for d893adf
1 file changed
CMakeLists.txt
@@ -28,7 +28,7 @@ execute_process(
28
OUTPUT_STRIP_TRAILING_WHITESPACE)
29
30
execute_process(
31
- COMMAND bash -c "git show ${GIT_COMMIT_HASH} | head -n 5 | tail -n 1 | sed -s 's/\#//g'"
+ COMMAND bash -c "git show ${GIT_COMMIT_HASH} | head -n 5 | tail -n 1 | sed -s 's/\#//g; s/^[[:space:]]*//'"
32
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
33
OUTPUT_VARIABLE GIT_COMMIT_MESSAGE
34
0 commit comments