mirror of
https://github.com/git/git.git
synced 2025-04-18 03:15:50 +00:00
git-gui: Handle ' within paths when creating Windows shortcuts.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
dbccbbda4f
commit
306500fc09
2
git-gui
2
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'"
|
||||
|
Loading…
x
Reference in New Issue
Block a user