提交 306500fc 编写于 作者: S Shawn O. Pearce

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

Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
上级 dbccbbda
...@@ -2049,6 +2049,8 @@ proc do_windows_shortcut {} { ...@@ -2049,6 +2049,8 @@ proc do_windows_shortcut {} {
--unix \ --unix \
--absolute \ --absolute \
$gitdir] $gitdir]
regsub -all ' $me "'\\''" me
regsub -all ' $gd "'\\''" gd
puts -nonewline $fd "\"$sh\" --login -c \"" puts -nonewline $fd "\"$sh\" --login -c \""
puts -nonewline $fd "GIT_DIR='$gd'" puts -nonewline $fd "GIT_DIR='$gd'"
puts -nonewline $fd " '$me'" puts -nonewline $fd " '$me'"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册