On Tue, Mar 27, 2012 at 07:10:03AM +0200, Zbigniew Jędrzejewski-Szmek wrote: > $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@xxxxxxxx> > Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@xxxxxxxxx> > --- > Stupid omission. Please apply. Thanks. I had a feeling it was something like this, but when I went to test again, I couldn't reproduce! It seems that COLUMNS is not exported by default, but somehow I must have exported it accidentally. > 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 > ' Should we perhaps just unset it in test-lib.sh, along with the other variables that cause an inconsistent test environment? This is the only test script that breaks now, but there's no reason not to protect all of the scripts. -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html