Re: [PATCH] Fix wrong failures in config test
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:21
Jonathan Nieder [off-list ref] writes:
quoted
Unfortunately, I had a shell alias function named git that interfered. In fact it passes to the git program (command git "$@") but sadly does not know about the newly set PATH and (still inexplicably to me) makes the variable set.
Yuck. I really do not want to do something like this X-<. t/test-lib.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh
index cb1ca97..df1b4f2 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh@@ -77,10 +77,10 @@ export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME export EDITOR # Protect ourselves from common misconfiguration to export -# CDPATH into the environment +# CDPATH into the environment and such unset CDPATH - unset GREP_OPTIONS +unalias git >/dev/null 2>&1 || : case $(echo $GIT_TRACE |tr "[A-Z]" "[a-z]") in 1|2|true)