From: Shawn O. Pearce Date: Thu, 16 Nov 2006 03:53:53 +0000 (-0500) Subject: git-gui: Handle ' within paths when creating Windows shortcuts. X-Git-Tag: gitgui-0.6.0~204 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=306500fc09e7d8be042e8b9abbd9011b80b3300d;p=git.git git-gui: Handle ' within paths when creating Windows shortcuts. Signed-off-by: Shawn O. Pearce --- diff --git a/git-gui b/git-gui index c35c73c8c..013f21b2e 100755 --- a/git-gui +++ b/git-gui @@ -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'"