Replace pipeline for producing git SHA1 with single command.

This commit is contained in:
Paul Romano 2014-03-04 20:13:47 -05:00
parent 937db3e475
commit fe58e8bdeb

View file

@ -156,9 +156,7 @@ endif()
# git SHA1 hash
#===============================================================================
execute_process(COMMAND git log -1
COMMAND head -n 1
COMMAND cut -c8-
execute_process(COMMAND git rev-parse -q HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE GIT_SHA1_SUCCESS
OUTPUT_VARIABLE GIT_SHA1