@matheusbsbs / matheus-bagliano / commits / 886a39074b
Fork 0

t/test-lib.sh: Protect ourselves from common misconfiguration that exports CDPATH to the environment

t/test-lib.sh: Protect ourselves from common misconfiguration that exports CDPATH to the environment Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Apr 24, 2007 at 11:21 UTC 886a39074be34d21afc6c1b8af1f7f4b3ef54dc5
1 file changed +4
t/test-lib.sh
+4
@@ -36,6 +36,10 @@ export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME
36 export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME
37 export EDITOR VISUAL
38
39 +# Protect ourselves from common misconfiguration to export
40 +# CDPATH into the environment
41 +unset CDPATH
42 +
43 case $(echo $GIT_TRACE |tr "[A-Z]" "[a-z]") in
44 1|2|true)
45 echo "* warning: Some tests will not work if GIT_TRACE" \