From 29bc08806b6f0ecd6cc057ab4558b5958cc7f8f7 Mon Sep 17 00:00:00 2001 From: bergmann Date: Fri, 2 Aug 2019 09:05:48 +0200 Subject: [PATCH] * Fixed bug: Git commands they do not output something on stdout are handles as error --- git_helper.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/git_helper.cmake b/git_helper.cmake index 6d2a79d..513a087 100644 --- a/git_helper.cmake +++ b/git_helper.cmake @@ -10,8 +10,7 @@ Function ( GitExecute COMMAND FORCE OUT_RESULT OUT_SUCCESS ) ERROR_VARIABLE GIT_ERR ) If ( NOT ${GIT_RET} EQUAL 0 - OR NOT "${GIT_ERR}" STREQUAL "" - OR "${GIT_REV}" STREQUAL "" ) + OR NOT "${GIT_ERR}" STREQUAL "" ) If ( FORCE ) Message ( FATAL_ERROR "Unable to execute git command (command=${COMMAND} out=${GIT_REV}; err=${GIT_ERR}; ret=${GIT_RET})" ) Else ( )