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>
This commit is contained in:
@ -83,9 +83,9 @@ if {![catch {set _verbose $env(GITGUI_VERBOSE)}]} {
|
|||||||
return [uplevel 1 real__auto_load $name $args]
|
return [uplevel 1 real__auto_load $name $args]
|
||||||
}
|
}
|
||||||
rename source real__source
|
rename source real__source
|
||||||
proc source {name} {
|
proc source {args} {
|
||||||
puts stderr "source $name"
|
puts stderr "source $args"
|
||||||
uplevel 1 real__source $name
|
uplevel 1 [linsert $args 0 real__source]
|
||||||
}
|
}
|
||||||
if {[tk windowingsystem] eq "win32"} { console show }
|
if {[tk windowingsystem] eq "win32"} { console show }
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user