Skip to content

Commit 2229c6f

Browse files
pysco68daminetreg
authored andcommitted
HermeticFetchContent v1.0.13 : Reducing noise generated by hfc_git_helpers
Removing non-debug output that was generated by hfc_git_helpers. More useful output is available when debug logging is enabled. Change-Id: Ibf6409ba9a218430bfa51676d693aa2dfd624f18
1 parent 4fe5741 commit 2229c6f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

cmake/modules/hfc_git_helpers.cmake

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ function(git_exec)
5050
set(execute_process_arg_COMMAND_ERROR_IS_FATAL COMMAND_ERROR_IS_FATAL ${FN_ARG_COMMAND_ERROR_IS_FATAL})
5151
endif()
5252

53-
if(FN_ARG_OUT_RESULT)
54-
set(execute_process_arg_OUTPUT_VARIABLE OUTPUT_VARIABLE cmd_output OUTPUT_STRIP_TRAILING_WHITESPACE)
55-
endif()
56-
5753
if(FN_ARG_OUT_RETURN_CODE)
5854
set(execute_process_arg_RESULT_VARIABLE RESULT_VARIABLE cmd_retcode)
5955
endif()
@@ -68,12 +64,13 @@ function(git_exec)
6864

6965
execute_process(COMMAND ${shell} "${FN_ARG_COMMAND}"
7066
WORKING_DIRECTORY "${FN_ARG_WORKING_DIRECTORY}"
71-
ECHO_OUTPUT_VARIABLE
67+
OUTPUT_VARIABLE cmd_output OUTPUT_STRIP_TRAILING_WHITESPACE
7268
${execute_process_arg_COMMAND_ERROR_IS_FATAL}
7369
${execute_process_arg_RESULT_VARIABLE}
74-
${execute_process_arg_OUTPUT_VARIABLE}
7570
)
7671

72+
hfc_log_debug("Output of ${FN_ARG_COMMAND}: ${cmd_output}")
73+
7774
if(FN_ARG_OUT_RESULT)
7875
set(${FN_ARG_OUT_RESULT} "${cmd_output}" PARENT_SCOPE)
7976
endif()

0 commit comments

Comments
 (0)