From: Junio C Hamano Date: Tue, 24 Apr 2007 18:21:47 +0000 (-0700) Subject: t/test-lib.sh: Protect ourselves from common misconfiguration X-Git-Tag: v1.5.2-rc1~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=886a39074be34d21afc6c1b8af1f7f4b3ef54dc5;p=git.git t/test-lib.sh: Protect ourselves from common misconfiguration that exports CDPATH to the environment Signed-off-by: Junio C Hamano --- diff --git a/t/test-lib.sh b/t/test-lib.sh index c0754747f..f2c6bd3b0 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -36,6 +36,10 @@ export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME export EDITOR VISUAL +# Protect ourselves from common misconfiguration to export +# CDPATH into the environment +unset CDPATH + case $(echo $GIT_TRACE |tr "[A-Z]" "[a-z]") in 1|2|true) echo "* warning: Some tests will not work if GIT_TRACE" \