浏览代码

* Fixed bug: Git commands they do not output something on stdout are handles as error

master
bergmann 4 年前
父节点
当前提交
29bc08806b
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      git_helper.cmake

+ 1
- 2
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 ( )


正在加载...
取消
保存