From: Pat Thoyts Date: Sun, 2 Oct 2016 10:51:29 +0000 (+0100) Subject: git-gui: fix detection of Cygwin X-Git-Tag: gitgui-0.21.0~8^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=577c7e8fc663bc0e31b10e8691f03c3361dedc51;p=thirdparty%2Fgit.git git-gui: fix detection of Cygwin MSys2 might *look* like Cygwin, but it is *not* Cygwin... Unless it is run with `MSYSTEM=MSYS`, that is. Signed-off-by: Johannes Schindelin Signed-off-by: Pat Thoyts --- diff --git a/git-gui.sh b/git-gui.sh index 11048c7a0e..2381c3e548 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -275,6 +275,10 @@ proc is_Cygwin {} { set _iscygwin 0 } else { set _iscygwin 1 + # Handle MSys2 which is only cygwin when MSYSTEM is MSYS. + if {[info exists ::env(MSYSTEM)] && $::env(MSYSTEM) ne "MSYS"} { + set _iscygwin 0 + } } } else { set _iscygwin 0