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>
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