]> Sergey Matveev's repositories - public-inbox.git/commitdiff
config: Honor gitconfig includes
authorAndreas Rottmann <mail@r0tty.org>
Sun, 29 Mar 2020 11:12:50 +0000 (13:12 +0200)
committerEric Wong <e@yhbt.net>
Sun, 29 Mar 2020 17:43:44 +0000 (17:43 +0000)
This allows for a setup where a central config file for the web server
includes per-user config files.

lib/PublicInbox/Config.pm

index 2d663515648741c8ab1a94b52bbeba703efd3eb8..917939ca6f5f8de6a8809d5326ad36290dba8408 100644 (file)
@@ -156,7 +156,7 @@ sub config_fh_parse ($$$) {
 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");