t1800: correct test to handle Cygwin
commit255a6f91ae4600ee2d257670477caf97b7986470
authorAdam Dinwoodie <adam@dinwoodie.org>
Thu, 15 Sep 2022 07:57:17 +0000 (15 08:57 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Sep 2022 17:29:51 +0000 (15 10:29 -0700)
treeb6041d06e4c8addb068b60f96eb7aa90d0f1db2e
parentd42b38dfb5edf1a7fddd9542d722f91038407819
t1800: correct test to handle Cygwin

On Cygwin, when failing to spawn a process using start_command, Git
outputs the same error as on Linux systems, rather than using the
GIT_WINDOWS_NATIVE-specific error output.  The WINDOWS test prerequisite
is set in both Cygwin and native Windows environments, which means it's
not appropriate to use to anticipate the error output from
start_command.  Instead, use the MINGW test prerequisite, which is only
set for Git in native Windows environments, and not for Cygwin.

Signed-off-by: Adam Dinwoodie <adam@dinwoodie.org>
Helped-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1800-hook.sh