File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,11 @@ proc do_windows_shortcut {} {
11
11
if {[file extension $fn ] ne {.lnk}} {
12
12
set fn ${fn} .lnk
13
13
}
14
- # Use /cmd/git-gui.exe if available
15
- set normalized [file normalize $::argv0 ]
16
- regsub "/mingw../libexec/git-core/git-gui$" \
17
- $normalized "/cmd/git-gui.exe" cmdLine
18
- if {$cmdLine != $normalized && [file exists $cmdLine ]} {
19
- set cmdLine [list [file nativename $cmdLine ]]
20
- } else {
21
- set cmdLine [list [info nameofexecutable] $normalized ]
22
- }
23
14
if {[catch {
24
- win32_create_lnk $fn $cmdLine \
15
+ win32_create_lnk $fn [list \
16
+ [info nameofexecutable] \
17
+ [file normalize $::argv0 ] \
18
+ ] \
25
19
[file normalize $_gitworktree ]
26
20
} err]} {
27
21
error_popup [strcat [mc " Cannot write shortcut:" ] " \n\n $err " ]
You can’t perform that action at this time.
0 commit comments