Skip to content

Commit

Permalink
git-gui: update shortcut tools to use _gitworktree
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Giuseppe Bilotta authored and Shawn O. Pearce committed Jan 23, 2010
1 parent 29e5573 commit 3748b03
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/shortcut.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Copyright (C) 2006, 2007 Shawn Pearce

proc do_windows_shortcut {} {
global _gitworktree
set fn [tk_getSaveFile \
-parent . \
-title [append "[appname] ([reponame]): " [mc "Create Desktop Icon"]] \
Expand All @@ -15,15 +16,15 @@ proc do_windows_shortcut {} {
[info nameofexecutable] \
[file normalize $::argv0] \
] \
[file dirname [file normalize [gitdir]]]
[file normalize [$_gitworktree]]
} err]} {
error_popup [strcat [mc "Cannot write shortcut:"] "\n\n$err"]
}
}
}

proc do_cygwin_shortcut {} {
global argv0
global argv0 _gitworktree

if {[catch {
set desktop [exec cygpath \
Expand Down Expand Up @@ -56,7 +57,7 @@ proc do_cygwin_shortcut {} {
$sh -c \
"CHERE_INVOKING=1 source /etc/profile;[sq $me] &" \
] \
[file dirname [file normalize [gitdir]]]
[file normalize [$_gitworktree]]
} err]} {
error_popup [strcat [mc "Cannot write shortcut:"] "\n\n$err"]
}
Expand Down

0 comments on commit 3748b03

Please sign in to comment.