Skip to content

Commit cdc6aba

Browse files
committed
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 <[email protected]>
1 parent 3b422bc commit cdc6aba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-gui.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ if {![catch {set _verbose $env(GITGUI_VERBOSE)}]} {
8383
return [uplevel 1 real__auto_load $name $args]
8484
}
8585
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]
8989
}
9090
if {[tk windowingsystem] eq "win32"} { console show }
9191
}

0 commit comments

Comments
 (0)