Skip to content

Commit 973d6b7

Browse files
committed
fixup! git-gui (Windows): use git-gui.exe in Create Desktop Shortcut
1 parent e6089c1 commit 973d6b7

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

git-gui/lib/shortcut.tcl

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,11 @@ proc do_windows_shortcut {} {
1111
if {[file extension $fn] ne {.lnk}} {
1212
set fn ${fn}.lnk
1313
}
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-
}
2314
if {[catch {
24-
win32_create_lnk $fn $cmdLine \
15+
win32_create_lnk $fn [list \
16+
[info nameofexecutable] \
17+
[file normalize $::argv0] \
18+
] \
2519
[file normalize $_gitworktree]
2620
} err]} {
2721
error_popup [strcat [mc "Cannot write shortcut:"] "\n\n$err"]

0 commit comments

Comments
 (0)