summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-04-24 18:21:47 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-04-24 18:21:47 (GMT)
commit886a39074be34d21afc6c1b8af1f7f4b3ef54dc5 (patch)
treed41a86835d3a56ae474e492ea1d9f69655397674 /t
parent520d7e278cfd25057e883575060b7378dfab61dc (diff)
downloadgit-886a39074be34d21afc6c1b8af1f7f4b3ef54dc5.zip
git-886a39074be34d21afc6c1b8af1f7f4b3ef54dc5.tar.gz
git-886a39074be34d21afc6c1b8af1f7f4b3ef54dc5.tar.bz2
t/test-lib.sh: Protect ourselves from common misconfiguration
that exports CDPATH to the environment Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rw-r--r--t/test-lib.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index c075474..f2c6bd3 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" \