Jens Lehmann  committed 831cc7e

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 <>

  • Participants
  • Parent commits cbdaf56
  • Branches master

Comments (0)

Files changed (1)

 	# -- 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 {