git-gui: Handle ' within paths when creating Windows shortcuts.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Nov 15, 2006 at 22:53 UTC
306500fc09e7d8be042e8b9abbd9011b80b3300d
1 file changed
+2
git-gui
+2
@@ -2049,6 +2049,8 @@ proc do_windows_shortcut {} {
2049
--unix \
2050
--absolute \
2051
$gitdir]
2052
+ regsub -all ' $me "'\\''" me
2053
+ regsub -all ' $gd "'\\''" gd
2054
puts -nonewline $fd "\"$sh\" --login -c \""
2055
puts -nonewline $fd "GIT_DIR='$gd'"
2056
puts -nonewline $fd " '$me'"