X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=color.c;h=d48dd947c987cdca13f103fd8b4a2e56eceab238;hb=936d1b989416a95f593bf81ccae8ac62cd83f279;hp=9a9261ac164f503e2a9240806f4f44bedf9b8192;hpb=c2b6135a1b52a567c92286bb1d3345b6cb0db584;p=git-core%2Fgit.git diff --git a/color.c b/color.c index 9a9261ac1..d48dd947c 100644 --- a/color.c +++ b/color.c @@ -329,8 +329,7 @@ static int check_auto_color(void) if (color_stdout_is_tty < 0) color_stdout_is_tty = isatty(1); if (color_stdout_is_tty || (pager_in_use() && pager_use_color)) { - char *term = getenv("TERM"); - if (term && strcmp(term, "dumb")) + if (!is_terminal_dumb()) return 1; } return 0;