git-gui: fix verbose loading when git path contains spaces.

After setting GITGUI_VERBOSE to enable load tracing the source command is redefined but fails if the git installation path has spaces. Fixed quoting by using lists to handle the arguments. Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>

Pat Thoyts committed Nov 7, 2014 at 00:37 UTC cdc6aba8c52af4ac4338a1e9fb1028ca3337a5e3
1 file changed +3 -3
git-gui.sh
+3 -3
@@ -83,9 +83,9 @@ if {![catch {set _verbose $env(GITGUI_VERBOSE)}]} {
83 return [uplevel 1 real__auto_load $name $args]
84 }
85 rename source real__source
86 - proc source {name} {
87 - puts stderr "source $name"
88 - uplevel 1 real__source $name
86 + proc source {args} {
87 + puts stderr "source $args"
88 + uplevel 1 [linsert $args 0 real__source]
89 }
90 if {[tk windowingsystem] eq "win32"} { console show }
91 }