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 <johannes.schindelin@gmx.de> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
This commit is contained in:
parent
82b2cab317
commit
577c7e8fc6
@ -275,6 +275,10 @@ proc is_Cygwin {} {
|
|||||||
set _iscygwin 0
|
set _iscygwin 0
|
||||||
} else {
|
} else {
|
||||||
set _iscygwin 1
|
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 {
|
} else {
|
||||||
set _iscygwin 0
|
set _iscygwin 0
|
||||||
|
Loading…
Reference in New Issue
Block a user