diff options
author | Eric Wong <e@80x24.org> | 2019-03-08 22:11:02 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-03-12 04:03:41 +0000 |
commit | 089cca37fa03641138d229dc5dbe76b382fc200f (patch) | |
tree | 7da9df3a3370eb796d0433e359e06980c33ae67c /lib/PublicInbox/Config.pm | |
parent | 48e20d29289ed60f5e4c14b5425bd63d1f824c5b (diff) | |
download | public-inbox-089cca37fa03641138d229dc5dbe76b382fc200f.tar.gz |
There's no reason for us to have git-config(1) warn users when a config file is entirely missing.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r-- | lib/PublicInbox/Config.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index da443e58..2ff266f1 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -147,6 +147,7 @@ sub default_file { sub git_config_dump { my ($file) = @_; my (%section_seen, @section_order); + return {} unless -e $file; my @cmd = (qw/git config/, "--file=$file", '-l'); my $cmd = join(' ', @cmd); my $fh = popen_rd(\@cmd) or die "popen_rd failed for $file: $!\n"; |