From: Junio C Hamano Date: Mon, 10 Jan 2011 21:30:12 GMT Subject: Re: [PATCH] Fix wrong failures in config test Message-ID: <7v62tw5twb.fsf@alter.siamese.dyndns.org> In-Reply-To: <20110110194242.GA11801@burratino> Jonathan Nieder writes: >> 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)