Skip to content

Commit 831cc7e

Browse files
jlehmannspearce
authored andcommitted
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 <[email protected]> Signed-off-by: Jens Lehmann <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent cbdaf56 commit 831cc7e

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
@@ -2059,7 +2059,7 @@ proc do_git_gui {} {
20592059
# -- Always start git gui through whatever we were loaded with. This
20602060
# lets us bypass using shell process on Windows systems.
20612061
#
2062-
set exe [_which git]
2062+
set exe [list [_which git]]
20632063
if {$exe eq {}} {
20642064
error_popup [mc "Couldn't find git gui in PATH"]
20652065
} else {

0 commit comments

Comments
 (0)