diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-30 17:46:31 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-30 20:49:31 +0000 |
commit | c4aa293b2320feb805c5afeaa373f608e5bc8618 (patch) | |
tree | 08413ea414cbf561d4246b0254d00e899f7ff6b3 /lib/PublicInbox/InboxWritable.pm | |
parent | f1a3ece0df6825792f1ec0ca326998c8915fd80d (diff) | |
download | public-inbox-c4aa293b2320feb805c5afeaa373f608e5bc8618.tar.gz |
Ensure -convert and -compact do not make repositories unreadable on live servers.
Diffstat (limited to 'lib/PublicInbox/InboxWritable.pm')
-rw-r--r-- | lib/PublicInbox/InboxWritable.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/PublicInbox/InboxWritable.pm b/lib/PublicInbox/InboxWritable.pm index 92b9016e..5c11a36c 100644 --- a/lib/PublicInbox/InboxWritable.pm +++ b/lib/PublicInbox/InboxWritable.pm @@ -168,10 +168,7 @@ sub import_mbox { sub _read_git_config_perm { my ($self) = @_; my @cmd = qw(config); - if (($self->{version} ||= 1) == 2) { - push @cmd, "--file=$self->{mainrepo}/all.git/config"; - } - chomp(my $perm = $self->git->qx(@cmd, 'core.sharedRepository')); + chomp(my $perm = $self->git->qx('config', 'core.sharedRepository')); $perm; } |