summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-05-02 16:44:44 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-05-02 16:44:44 (GMT)
commit681bfd59ce1a93a4492e11a480e438099f721294 (patch)
tree9e466e8bb18c933b7c8c151f78f4863c8fca1cdc
parentf6f2aa39ef97cae03c71ecfecc334f0df60d7920 (diff)
downloadgit-681bfd59ce1a93a4492e11a480e438099f721294.zip
git-681bfd59ce1a93a4492e11a480e438099f721294.tar.gz
git-681bfd59ce1a93a4492e11a480e438099f721294.tar.bz2
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>
-rwxr-xr-xgit-gui.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 7cbc977..ae88133 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 { }