This allows us to run git, when using the script from bin-wrappers, under other programs. A few examples: GIT_WRAPPER=nemiver git $ARGS GIT_WRAPPER="valgrind --tool=memcheck --track-origins=yes" git $ARGS Yes, we already have GIT_TEST_GDB (which could potentially be replaced with GIT_WRAPPER="gdb --args"), and a bunch of options for running a testcase or multiple testcases under valgrind, but I find the extra flexibility useful. Signed-off-by: Elijah Newren <newren@xxxxxxxxx> --- wrap-for-bin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrap-for-bin.sh b/wrap-for-bin.sh index 5842408817..1b34d44193 100644 --- a/wrap-for-bin.sh +++ b/wrap-for-bin.sh @@ -25,5 +25,5 @@ then unset GIT_TEST_GDB exec gdb --args "${GIT_EXEC_PATH}/@@PROG@@" "$@" else - exec "${GIT_EXEC_PATH}/@@PROG@@" "$@" + exec ${GIT_WRAPPER} "${GIT_EXEC_PATH}/@@PROG@@" "$@" fi -- 2.17.0.7.g0b50f94d69