Skip to content

Commit

Permalink
git-gui: Paper bag fix the global config parsing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce committed Oct 17, 2007
1 parent 8621581 commit a5bb31f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5bb31f

Please sign in to comment.