diff options
author | Pat Thoyts <patthoyts@users.sourceforge.net> | 2014-11-07 00:37:28 +0000 |
---|---|---|
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | 2014-11-07 00:37:28 +0000 |
commit | cdc6aba8c52af4ac4338a1e9fb1028ca3337a5e3 (patch) | |
tree | fb185828eded2574e7d6d1d59be40d1484a1ba56 | |
parent | 3b422bc85495d93dd2e3f3ee1f7c792193393687 (diff) | |
download | git-cdc6aba8c52af4ac4338a1e9fb1028ca3337a5e3.tar.gz |
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>
-rwxr-xr-x | git-gui.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-gui.sh b/git-gui.sh index dc53e9a8f5..27ce0e3f7c 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -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 } } |