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 <hvoigt@hvoigt.net> Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Jens Lehmann committed
Jan 28, 2010 at 22:20 UTC
831cc7ebb43046c0e5122bc24ab77e2655f3b9b5
1 file changed
+1
-1
git-gui.sh
+1
-1
@@ -2059,7 +2059,7 @@ proc do_git_gui {} {
2059
# -- Always start git gui through whatever we were loaded with. This
2060
# lets us bypass using shell process on Windows systems.
2061
#
2062
- set exe [_which git]
2062
+ set exe [list [_which git]]
2063
if {$exe eq {}} {
2064
error_popup [mc "Couldn't find git gui in PATH"]
2065
} else {