CMake: Silence more stderr when running git.

It can confuse bots collecting errors.

llvm-svn: 301934
This commit is contained in:
Tim Northover 2017-05-02 16:37:37 +00:00
parent 3847996d74
commit a88cf40864
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ function(add_version_info_from_vcs VERS)
execute_process(COMMAND ${git_executable} rev-parse --git-dir
WORKING_DIRECTORY ${SOURCE_DIR}/cmake
RESULT_VARIABLE git_result
OUTPUT_VARIABLE git_dir)
OUTPUT_VARIABLE git_dir
ERROR_QUIET)
if(git_result EQUAL 0)
# Try to get a ref-id
string(STRIP "${git_dir}" git_dir)