diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2011-03-15 05:10:45 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-15 12:23:57 -0700 |
commit | 95a1d12e9b9faddc02187ca28fdeb4fddd354c59 (patch) | |
tree | b84c136f4c5d052de663c93b9e6e58c10230d7d4 /t/t3400-rebase.sh | |
parent | config: drop support for GIT_CONFIG_NOGLOBAL (diff) | |
download | tgif-95a1d12e9b9faddc02187ca28fdeb4fddd354c59.tar.xz |
tests: scrub environment of GIT_* variables
Variables from the inherited environment that are meaningful to git
can break tests in undesirable ways. For example,
GIT_PAGER=more sh t5400-send-pack.sh -v -i
hangs. So unset all environment variables in the GIT_ namespace in
test-lib, with a few exceptions:
- GIT_TRACE* are useful for tracking down bugs exhibited by a failing
test;
- GIT_DEBUG* are GIT_TRACE variables by another name, practically
speaking. They should probably be tweaked to follow the
GIT_TRACE_foo scheme and use trace_printf machinery some time.
- GIT_USE_LOOKUP from v1.5.6-rc0~134^2~1 (sha1-lookup: more memory
efficient search in sorted list of SHA-1, 2007-12-29) is about
trying an alternate implementation strategy rather than changing
semantics and it can be useful to compare performance with and
without it set.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3400-rebase.sh')
0 files changed, 0 insertions, 0 deletions