projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4340a81
)
Do no colorify test output if stdout is not a terminal
author
Alex Riesen
<raa.lkml@gmail.com>
Thu, 1 Nov 2007 14:01:58 +0000
(15:01 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 1 Nov 2007 22:37:34 +0000
(15:37 -0700)
like when the output is redirected into a file in a cron job.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh
patch
|
blob
|
history
diff --git
a/t/test-lib.sh
b/t/test-lib.sh
index 714de6e5753e200d8685ef244a428d099a3ae95d..603a8cd5e7c53569fea3dba66754b52ea1fad9ba 100644
(file)
--- a/
t/test-lib.sh
+++ b/
t/test-lib.sh
@@
-60,6
+60,7
@@
esac
# . ./test-lib.sh
[ "x$TERM" != "xdumb" ] &&
+ [ -t 1 ] &&
tput bold >/dev/null 2>&1 &&
tput setaf 1 >/dev/null 2>&1 &&
tput sgr0 >/dev/null 2>&1 &&