git-gui: Handle ' within paths when creating Windows shortcuts.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2006-11-15 22:53:53 -05:00
parent dbccbbda4f
commit 306500fc09

View File

@ -2049,6 +2049,8 @@ proc do_windows_shortcut {} {
--unix \
--absolute \
$gitdir]
regsub -all ' $me "'\\''" me
regsub -all ' $gd "'\\''" gd
puts -nonewline $fd "\"$sh\" --login -c \""
puts -nonewline $fd "GIT_DIR='$gd'"
puts -nonewline $fd " '$me'"