[PATCH] t4052: unset $COLUMNS inherited from environment
- From
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
- Date
- Mar 27, 2012, 05:10 UTC
- Message-ID
- <1332825003-2288-1-git-send-email-zbyszek@in.waw.pl>
- In-Reply-To
- <20120326234549.GA10172@sigill.intra.peff.net>
$COLUMNS must be unset to not interfere with the tests. The tests already ignore the terminal size because output is redirected to a file, but $COLUMNS overrides terminal size detection and changes the test output away from the standard 80 even if not on a terminal.
Reported-by: Jeff King <peff@peff.net> Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> --- Stupid omission. Please apply.
t/t4052-stat-output.sh | 1 + 1 file changed, 1 insertion(+)
diff --git a/t/t4052-stat-output.sh b/t/t4052-stat-output.sh index 328aa8f..1f47f1d 100755 --- a/t/t4052-stat-output.sh +++ b/t/t4052-stat-output.sh @@ -17,6 +17,7 @@ test_expect_success 'preparation' ' git commit -m message && echo a >"$name" && git commit -m message "$name" + sane_unset COLUMNS ' while read cmd args
-- 1.7.10.rc1.222.gc0040.dirty