Merge branch 'js/mingw-isatty' into next
authorJunio C Hamano <gitster@pobox.com>
Mon, 12 Dec 2016 18:57:22 +0000 (10:57 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Dec 2016 18:57:22 +0000 (10:57 -0800)
commit60c1da66769f16f48a3908f2cdfbfe7efe89c668
tree27104b20c14424c476adc27d5ba4bd1c101a80dc
parente37970c3f5439e33c4403dafb71d6bffe9193005
parentcbb3f3c9b1975c9bdd07f24fc4ef4e504507adaa
Merge branch 'js/mingw-isatty' into next

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