summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-10-16 16:55:34 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-10-17 07:38:00 (GMT)
commita5bb31fb6323b53559b0d15ce2d02a7ba6d74bed (patch)
tree823fa597ce3e5f765e0c53c47a03b8c068ff87e2 /git-gui.sh
parent86215812487930c69e197ef03be31e0b396a04cc (diff)
downloadgit-a5bb31fb6323b53559b0d15ce2d02a7ba6d74bed.zip
git-a5bb31fb6323b53559b0d15ce2d02a7ba6d74bed.tar.gz
git-a5bb31fb6323b53559b0d15ce2d02a7ba6d74bed.tar.bz2
git-gui: Paper bag fix the global config parsing
git-config won't honor any options after --list. We must supply the --global option in front of --list if we really want to load the global configuration options. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 9bc5626..38c6e59 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -755,7 +755,10 @@ git-version proc _parse_config {arr_name args} {
array unset arr
set buf {}
catch {
- set fd_rc [eval [list git_read config --null --list] $args]
+ set fd_rc [eval \
+ [list git_read config] \
+ $args \
+ [list --null --list]]
fconfigure $fd_rc -translation binary
set buf [read $fd_rc]
close $fd_rc