OSDN Git Service

Merge branch 'js/mingw-isatty'
authorJunio C Hamano <gitster@pobox.com>
Tue, 13 Dec 2016 22:09:27 +0000 (14:09 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Dec 2016 22:09:27 +0000 (14:09 -0800)
commitc04790a93a437458638604af90351557c98e5a5d
tree4c41d32f66fa7b3fa7cced82f8e46d39f3a4ffcf
parent8d7a455ed52e2a96debc080dfc011b6bb00db5d2
parentcbb3f3c9b1975c9bdd07f24fc4ef4e504507adaa
Merge branch 'js/mingw-isatty'

We often decide if a session is interactive by checking if the
standard I/O streams are connected to a TTY, but isatty() emulation
on Windows incorrectly returned true if it is used on NUL (i.e. an
equivalent to /dev/null). This has been fixed.

* js/mingw-isatty:
  mingw: intercept isatty() to handle /dev/null as Git expects it