git-gui: Quote git path when starting another gui in a submodule
[gitweb.git] / git-gui.sh
index 574954758517acfb347c1fb64f5e161a470f5261..debcc5f41bafe47f90ad95cc2fcf6b7cd4e4bcc4 100755 (executable)
@@ -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 {