Error fixed in AutoVersioning when no .git is found

This commit is contained in:
Bernhard Miklautz 2012-07-27 03:32:42 +02:00
parent 3d59c44f7a
commit e3f03f57d8

View File

@ -40,7 +40,8 @@ else()
endif()
# Check if has not commited changes
execute_process(COMMAND git update-index -q --refresh)
execute_process(COMMAND git update-index -q --refresh
ERROR_QUIET)
execute_process(COMMAND git diff-index --name-only HEAD --
OUTPUT_VARIABLE CHANGED_SOURCE
OUTPUT_STRIP_TRAILING_WHITESPACE