Skip to content

Commit a1231de

Browse files
peffgitster
authored andcommitted
tests: sanitize more git environment variables
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5ce3258 commit a1231de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/test-lib.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ unset GIT_NOTES_REF
7070
unset GIT_NOTES_DISPLAY_REF
7171
unset GIT_NOTES_REWRITE_REF
7272
unset GIT_NOTES_REWRITE_MODE
73+
unset GIT_REFLOG_ACTION
74+
unset GIT_CHERRY_PICK_HELP
75+
unset GIT_QUIET
7376
GIT_MERGE_VERBOSITY=5
7477
export GIT_MERGE_VERBOSITY
7578
export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME

0 commit comments

Comments
 (0)