]> granicus.if.org Git - llvm/commitdiff
CMake: Silence more stderr when running git.
authorTim Northover <tnorthover@apple.com>
Tue, 2 May 2017 16:37:37 +0000 (16:37 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 2 May 2017 16:37:37 +0000 (16:37 +0000)
It can confuse bots collecting errors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301934 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/VersionFromVCS.cmake

index a2ff4c0776a531f5e1ec4d64cd337613e30cffac..552fe77cdfb6890d43b34ff0fc478e29577951b7 100644 (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)