Skip to content

Commit

Permalink
git-gui: fix verbose loading when git path contains spaces.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pat Thoyts committed Nov 7, 2014
1 parent 3b422bc commit cdc6aba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ if {![catch {set _verbose $env(GITGUI_VERBOSE)}]} {
return [uplevel 1 real__auto_load $name $args]
}
rename source real__source
proc source {name} {
puts stderr "source $name"
uplevel 1 real__source $name
proc source {args} {
puts stderr "source $args"
uplevel 1 [linsert $args 0 real__source]
}
if {[tk windowingsystem] eq "win32"} { console show }
}
Expand Down

0 comments on commit cdc6aba

Please sign in to comment.