]> git.ipfire.org Git - thirdparty/git.git/commit
mingw: restrict file handle inheritance only on Windows 7 and later
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 22 Nov 2019 14:41:05 +0000 (14:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 Nov 2019 02:17:01 +0000 (11:17 +0900)
commitac33519ddfa818f420b4ef5a09b4a7b3ac8adeb8
tree3be69cd77e59cc611b37cfbbf9a145e268445376
parent9a780a384de21a35866a380247b34442b5ca3bb8
mingw: restrict file handle inheritance only on Windows 7 and later

Turns out that it don't work so well on Vista, see
https://github.com/git-for-windows/git/issues/1742 for details.

According to https://devblogs.microsoft.com/oldnewthing/?p=8873, it
*should* work on Windows Vista and later.

But apparently there are issues on Windows Vista when pipes are
involved. Given that Windows Vista is past its end of life (official
support ended on April 11th, 2017), let's not spend *too* much time on
this issue and just disable the file handle inheritance restriction on
any Windows version earlier than Windows 7.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/core.txt
compat/mingw.c