My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82b2cab
)
git-gui: fix detection of Cygwin
author
Pat Thoyts
<patthoyts@users.sourceforge.net>
Sun, 2 Oct 2016 10:51:29 +0000
(11:51 +0100)
committer
Pat Thoyts
<patthoyts@users.sourceforge.net>
Mon, 3 Oct 2016 10:03:29 +0000
(11:03 +0100)
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>
git-gui.sh
patch
|
blob
|
history
diff --git
a/git-gui.sh
b/git-gui.sh
index
11048c7
..
2381c3e
100755
(executable)
--- 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