Skip to content

Commit

Permalink
CMake: Silence more stderr when running git.
Browse files Browse the repository at this point in the history
It can confuse bots collecting errors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301934 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
TNorthover committed May 2, 2017
1 parent 20c757b commit f3dc328
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/modules/VersionFromVCS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f3dc328

Please sign in to comment.