File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,10 @@ proc is_Cygwin {} {
275
275
set _iscygwin 0
276
276
} else {
277
277
set _iscygwin 1
278
+ # Handle MSys2 which is only cygwin when MSYSTEM is MSYS.
279
+ if {[info exists ::env(MSYSTEM)] && $::env(MSYSTEM) ne " MSYS" } {
280
+ set _iscygwin 0
281
+ }
278
282
}
279
283
} else {
280
284
set _iscygwin 0
Original file line number Diff line number Diff line change @@ -11,11 +11,14 @@ proc do_windows_shortcut {} {
11
11
if {[file extension $fn ] ne {.lnk}} {
12
12
set fn ${fn} .lnk
13
13
}
14
+ # Use git-gui.exe if available (ie: git-for-windows)
15
+ set cmdLine [auto_execok git-gui.exe]
16
+ if {$cmdLine eq {}} {
17
+ set cmdLine [list [info nameofexecutable] \
18
+ [file normalize $::argv0 ]]
19
+ }
14
20
if {[catch {
15
- win32_create_lnk $fn [list \
16
- [info nameofexecutable] \
17
- [file normalize $::argv0 ] \
18
- ] \
21
+ win32_create_lnk $fn $cmdLine \
19
22
[file normalize $_gitworktree ]
20
23
} err]} {
21
24
error_popup [strcat [mc " Cannot write shortcut:" ] " \n\n $err " ]
You can’t perform that action at this time.
0 commit comments