Revert "test-lib.sh: do tests for color support after changing HOME"
commitca92a660bf085efd8867861b4d80d95659dd49a3
authorRichard Hansen <rhansen@bbn.com>
Wed, 17 Jun 2015 19:06:25 +0000 (17 15:06 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jun 2015 20:05:00 +0000 (17 13:05 -0700)
tree9619c273a29dae9cbcee5a69deab121442511098
parent102fc80d32094ad6598b17ab9d607516ee8edc4a
Revert "test-lib.sh: do tests for color support after changing HOME"

This reverts commit 102fc80d32094ad6598b17ab9d607516ee8edc4a.

There are two issues with that commit:

  * It is buggy.  In pseudocode, it is doing:

       color is set || TERM != dumb && color works && color=t

    when it should be doing:

       color is set || { TERM != dumb && color works && color=t }

  * It unnecessarily disables color when tput needs to read
    ~/.terminfo to get the control sequences.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh