aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Voigt <hvoigt@hvoigt.net>2010-02-27 21:45:51 +0100
committerPat Thoyts <patthoyts@users.sourceforge.net>2010-07-30 09:57:26 +0100
commita197b1e89a1c779e69c5ce8746f13b48158030ac (patch)
tree5466e0297e4685bc224bdf8b4486e8aa3b9bb749
parent2e0cda658e08482b804718bfa0f3e64e7af17ea7 (diff)
downloadgit-a197b1e89a1c779e69c5ce8746f13b48158030ac.tar.gz
git-a197b1e89a1c779e69c5ce8746f13b48158030ac.tar.xz
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>
-rw-r--r--lib/shortcut.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/shortcut.tcl b/lib/shortcut.tcl
index 79c1888e1..78878ef89 100644
--- a/lib/shortcut.tcl
+++ b/lib/shortcut.tcl
@@ -16,7 +16,7 @@ proc do_windows_shortcut {} {
[info nameofexecutable] \
[file normalize $::argv0] \
] \
- [file normalize [$_gitworktree]]
+ [file normalize $_gitworktree]
} err]} {
error_popup [strcat [mc "Cannot write shortcut:"] "\n\n$err"]
}
@@ -57,7 +57,7 @@ proc do_cygwin_shortcut {} {
$sh -c \
"CHERE_INVOKING=1 source /etc/profile;[sq $me] &" \
] \
- [file normalize [$_gitworktree]]
+ [file normalize $_gitworktree]
} err]} {
error_popup [strcat [mc "Cannot write shortcut:"] "\n\n$err"]
}