git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] tests: sanitize more git environment variables

From
Jeff King <peff@peff.net>
Date
Jan 26, 2011, 20:33 UTC
Message-ID
<20110126203331.GA27478@sigill.intra.peff.net>

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>
---
 t/test-lib.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 42f2f14..0fdc541 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -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
-- 
1.7.0.9.7.g36b59
Next: Jeff King
Message 1 of 4 in “tests: sanitize more git environment variables”
  1. tests: sanitize more git environment variablesJeff King, Jan 26, 2011
  2. Jeff KingJan 26, 2011
  3. Junio C HamanoJan 26, 2011
  4. Jeff KingJan 27, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.