Skip to content

Commit 681bfd5

Browse files
committed
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 <[email protected]>
1 parent f6f2aa3 commit 681bfd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-gui.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4134,7 +4134,7 @@ proc do_gitk {revs} {
41344134
# -- Always start gitk through whatever we were loaded with. This
41354135
# lets us bypass using shell process on Windows systems.
41364136
#
4137-
set cmd [info nameofexecutable]
4137+
set cmd [list [info nameofexecutable]]
41384138
lappend cmd [gitexec gitk]
41394139
if {$revs ne {}} {
41404140
append cmd { }

0 commit comments

Comments
 (0)