This allows for a setup where a central config file for the web server
includes per-user config files.
sub git_config_dump {
my ($file) = @_;
return {} unless -e $file;
sub git_config_dump {
my ($file) = @_;
return {} unless -e $file;
- my @cmd = (qw/git config -z -l/, "--file=$file");
+ my @cmd = (qw/git config -z -l --includes/, "--file=$file");
my $cmd = join(' ', @cmd);
my $fh = popen_rd(\@cmd);
my $rv = config_fh_parse($fh, "\0", "\n");
my $cmd = join(' ', @cmd);
my $fh = popen_rd(\@cmd);
my $rv = config_fh_parse($fh, "\0", "\n");