File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2006, 2007 Shawn Pearce
3
3
4
4
proc do_windows_shortcut {} {
5
+ global _gitworktree
5
6
set fn [tk_getSaveFile \
6
7
-parent . \
7
8
-title [append " [ appname] ([ reponame] ): " [mc " Create Desktop Icon" ]] \
@@ -15,15 +16,15 @@ proc do_windows_shortcut {} {
15
16
[info nameofexecutable] \
16
17
[file normalize $::argv0 ] \
17
18
] \
18
- [file dirname [ file normalize [gitdir] ]]
19
+ [file normalize [$_gitworktree ]]
19
20
} err]} {
20
21
error_popup [strcat [mc " Cannot write shortcut:" ] " \n\n $err " ]
21
22
}
22
23
}
23
24
}
24
25
25
26
proc do_cygwin_shortcut {} {
26
- global argv0
27
+ global argv0 _gitworktree
27
28
28
29
if {[catch {
29
30
set desktop [exec cygpath \
@@ -56,7 +57,7 @@ proc do_cygwin_shortcut {} {
56
57
$sh -c \
57
58
" CHERE_INVOKING=1 source /etc/profile;[ sq $me ] &" \
58
59
] \
59
- [file dirname [ file normalize [gitdir] ]]
60
+ [file normalize [$_gitworktree ]]
60
61
} err]} {
61
62
error_popup [strcat [mc " Cannot write shortcut:" ] " \n\n $err " ]
62
63
}
You can’t perform that action at this time.
0 commit comments