[PATCH 1/9] test-lib: preserve GIT_CURL_VERBOSE from the environment
- From
Jeff King <peff@peff.net>
- Date
- May 21, 2014, 10:27 UTC
- Message-ID
- <20140521102710.GA30464@sigill.intra.peff.net>
- In-Reply-To
- <20140521102524.GA30301@sigill.intra.peff.net>
Turning on this variable can be useful when debugging http tests. It does break a few tests in t5541, but it is not a variable that the user is likely to have enabled accidentally.
Signed-off-by: Jeff King <peff@peff.net> --- Not necessary for this series, but I found it helpful.
I took a look at making the tests in t5541 work with it, but it's a little nasty (we have to separate the curl output from the regular stderr). Unsetting GIT_CURL_VERBOSE for those tests would also be an option. Or just dropping this patch is OK with me, too; it's really only for debugging.
t/test-lib.sh | 1 + 1 file changed, 1 insertion(+)
diff --git a/t/test-lib.sh b/t/test-lib.sh index c081668..f7e55b1 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -91,6 +91,7 @@ unset VISUAL EMAIL LANGUAGE COLUMNS $("$PERL_PATH" -e ' VALGRIND UNZIP PERF_ + CURL_VERBOSE )); my @vars = grep(/^GIT_/ && !/^GIT_($ok)/o, @env); print join("\n", @vars);
-- 2.0.0.rc1.436.g03cb729