@matheusbsbs / matheus-bagliano / commits / 681bfd59ce
Fork 0

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 <spearce@spearce.org>

Shawn O. Pearce committed May 2, 2007 at 12:44 UTC 681bfd59ce1a93a4492e11a480e438099f721294
1 file changed +1 -1
git-gui.sh
+1 -1
@@ -4134,7 +4134,7 @@ proc do_gitk {revs} {
4134 # -- Always start gitk through whatever we were loaded with. This
4135 # lets us bypass using shell process on Windows systems.
4136 #
4137 - set cmd [info nameofexecutable]
4137 + set cmd [list [info nameofexecutable]]
4138 lappend cmd [gitexec gitk]
4139 if {$revs ne {}} {
4140 append cmd { }