diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-11-29 16:19:42 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-11-29 16:44:45 +0400 |
commit | 5f2400414acd5374a49ffc42cb50b5fe4275655b (patch) | |
tree | 937ef483edbae45a0c4a28d5f3d1c98e8718dc48 /build_files/cmake/buildinfo.cmake | |
parent | 285e09bceb4d78cdefb046b5c58f8fa33a04ef05 (diff) |
Buildinfo: suppress error prints when building local branches
Before this console output contained messages about branch is not
configured to use any upstream branch which is not useful information
at all.
Diffstat (limited to 'build_files/cmake/buildinfo.cmake')
-rw-r--r-- | build_files/cmake/buildinfo.cmake | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/build_files/cmake/buildinfo.cmake b/build_files/cmake/buildinfo.cmake index c31a7cfacb0..fc5cb017283 100644 --- a/build_files/cmake/buildinfo.cmake +++ b/build_files/cmake/buildinfo.cmake @@ -17,7 +17,8 @@ if(EXISTS ${SOURCE_DIR}/.git) execute_process(COMMAND git rev-parse --short @{u} WORKING_DIRECTORY ${SOURCE_DIR} OUTPUT_VARIABLE MY_WC_HASH - OUTPUT_STRIP_TRAILING_WHITESPACE) + OUTPUT_STRIP_TRAILING_WHITESPACE + ERROR_QUIET) if (MY_WC_HASH STREQUAL "") # Local branch, not set to upstream. @@ -25,7 +26,7 @@ if(EXISTS ${SOURCE_DIR}/.git) execute_process(COMMAND git rev-parse --short HEAD WORKING_DIRECTORY ${SOURCE_DIR} OUTPUT_VARIABLE MY_WC_HASH - OUTPUT_STRIP_TRAILING_WHITESPACE) + OUTPUT_STRIP_TRAILING_WHITESPACE) endif() execute_process(COMMAND git rev-parse --abbrev-ref HEAD @@ -55,7 +56,8 @@ if(EXISTS ${SOURCE_DIR}/.git) execute_process(COMMAND git log @{u}.. WORKING_DIRECTORY ${SOURCE_DIR} OUTPUT_VARIABLE _git_unpushed_log - OUTPUT_STRIP_TRAILING_WHITESPACE) + OUTPUT_STRIP_TRAILING_WHITESPACE + ERROR_QUIET) if(NOT _git_unpushed_log STREQUAL "") set(MY_WC_BRANCH "${MY_WC_BRANCH} (modified)") endif() |