From: Shawn O. Pearce Date: Wed, 2 May 2007 16:44:44 +0000 (-0400) Subject: git-gui: Allow spaces in path to 'wish' X-Git-Tag: gitgui-0.7.0-rc1~14^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=681bfd59ce1a93a4492e11a480e438099f721294;p=git.git git-gui: Allow spaces in path to 'wish' If the path of our wish executable that are running under contains spaces we need to make sure they are escaped in a proper Tcl list, otherwise we are unable to start gitk. Reported by Randal L. Schwartz on #git. Signed-off-by: Shawn O. Pearce --- diff --git a/git-gui.sh b/git-gui.sh index 7cbc977ea..ae881336d 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -4134,7 +4134,7 @@ proc do_gitk {revs} { # -- Always start gitk through whatever we were loaded with. This # lets us bypass using shell process on Windows systems. # - set cmd [info nameofexecutable] + set cmd [list [info nameofexecutable]] lappend cmd [gitexec gitk] if {$revs ne {}} { append cmd { }