diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-20 11:59:05 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-20 11:59:05 +0300 |
commit | 6de12b1b43f846f786abc903b992d9493900f76f (patch) | |
tree | b4d59adf1a4e56851181aab1882a7b518389bcf6 /build_files/cmake/buildinfo.cmake | |
parent | 1cd4070e35fa8439bffcf500487e9922e11bd1d4 (diff) |
CMake: Suppress unconfigured branch upstream error in the output
Diffstat (limited to 'build_files/cmake/buildinfo.cmake')
-rw-r--r-- | build_files/cmake/buildinfo.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build_files/cmake/buildinfo.cmake b/build_files/cmake/buildinfo.cmake index 8ef29b06213..74c1f8f1f8e 100644 --- a/build_files/cmake/buildinfo.cmake +++ b/build_files/cmake/buildinfo.cmake @@ -60,7 +60,8 @@ if(EXISTS ${SOURCE_DIR}/.git) execute_process(COMMAND git log HEAD..@{u} WORKING_DIRECTORY ${SOURCE_DIR} OUTPUT_VARIABLE _git_below_check - OUTPUT_STRIP_TRAILING_WHITESPACE) + OUTPUT_STRIP_TRAILING_WHITESPACE + ERROR_QUIET) if(NOT _git_below_check STREQUAL "") # If there're commits between HEAD and upstream this means # that we're reset-ed to older revision. Use it's hash then. |