OSDN Git Service
(root)
/
git-core
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'sg/travis-fixes'
[git-core/git.git]
/
sideband.c
diff --git
a/sideband.c
b/sideband.c
index
1e4d684
..
6d7f943
100644
(file)
--- a/
sideband.c
+++ b/
sideband.c
@@
-20,13
+20,12
@@
int recv_sideband(const char *me, int in_stream, int out)
{
int recv_sideband(const char *me, int in_stream, int out)
{
- const char *
term, *
suffix;
+ const char *suffix;
char buf[LARGE_PACKET_MAX + 1];
struct strbuf outbuf = STRBUF_INIT;
int retval = 0;
char buf[LARGE_PACKET_MAX + 1];
struct strbuf outbuf = STRBUF_INIT;
int retval = 0;
- term = getenv("TERM");
- if (isatty(2) && term && strcmp(term, "dumb"))
+ if (isatty(2) && !is_terminal_dumb())
suffix = ANSI_SUFFIX;
else
suffix = DUMB_SUFFIX;
suffix = ANSI_SUFFIX;
else
suffix = DUMB_SUFFIX;