From 831cc7ebb43046c0e5122bc24ab77e2655f3b9b5 Mon Sep 17 00:00:00 2001 From: Jens Lehmann Date: Thu, 28 Jan 2010 22:20:39 +0100 Subject: [PATCH] git-gui: Quote git path when starting another gui in a submodule In do_git_gui the path of the git executable has to be put into a list, otherwise calling it will fail when when spaces are present in its path. Reported-by: Heiko Voigt Signed-off-by: Jens Lehmann Signed-off-by: Shawn O. Pearce --- git-gui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-gui.sh b/git-gui.sh index 574954758..debcc5f41 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -2059,7 +2059,7 @@ proc do_git_gui {} { # -- Always start git gui through whatever we were loaded with. This # lets us bypass using shell process on Windows systems. # - set exe [_which git] + set exe [list [_which git]] if {$exe eq {}} { error_popup [mc "Couldn't find git gui in PATH"] } else { -- 2.26.2