Code

tests: sanitize more git environment variables
authorJeff King <peff@peff.net>
Wed, 26 Jan 2011 20:33:32 +0000 (15:33 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Jan 2011 18:24:05 +0000 (10:24 -0800)
These variables should generally not be set in one's
environment, but they do get set by rebase, which means
doing an interactive rebase like:

  pick abcd1234 foo
  exec make test

will cause false negatives in the test suite.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh

index 1fb76abd14e358afb42774f0ffe1d4e70b749074..7ffd7d36ade0520438fda3e2a1d39716b6f594d3 100644 (file)
@@ -70,6 +70,9 @@ unset GIT_NOTES_REF
 unset GIT_NOTES_DISPLAY_REF
 unset GIT_NOTES_REWRITE_REF
 unset GIT_NOTES_REWRITE_MODE
+unset GIT_REFLOG_ACTION
+unset GIT_CHERRY_PICK_HELP
+unset GIT_QUIET
 GIT_MERGE_VERBOSITY=5
 export GIT_MERGE_VERBOSITY
 export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME