@matheusbsbs / matheus-bagliano / commits / a197b1e89a
Fork 0

git-gui: fix usage of _gitworktree when creating shortcut for windows

This fixes msysGit issue 425. Signed-off-by: Heiko Voigt <heiko.voigt@mahr.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>

Heiko Voigt committed Feb 27, 2010 at 21:45 UTC a197b1e89a1c779e69c5ce8746f13b48158030ac
1 file changed +2 -2
lib/shortcut.tcl
+2 -2
@@ -16,7 +16,7 @@ proc do_windows_shortcut {} {
16 [info nameofexecutable] \
17 [file normalize $::argv0] \
18 ] \
19 - [file normalize [$_gitworktree]]
19 + [file normalize $_gitworktree]
20 } err]} {
21 error_popup [strcat [mc "Cannot write shortcut:"] "\n\n$err"]
22 }
@@ -57,7 +57,7 @@ proc do_cygwin_shortcut {} {
57 $sh -c \
58 "CHERE_INVOKING=1 source /etc/profile;[sq $me] &" \
59 ] \
60 - [file normalize [$_gitworktree]]
60 + [file normalize $_gitworktree]
61 } err]} {
62 error_popup [strcat [mc "Cannot write shortcut:"] "\n\n$err"]
63 }