about summary refs log tree commit homepage
path: root/lib/PublicInbox/InboxWritable.pm
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-30 17:46:31 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-30 20:49:31 +0000
commitc4aa293b2320feb805c5afeaa373f608e5bc8618 (patch)
tree08413ea414cbf561d4246b0254d00e899f7ff6b3 /lib/PublicInbox/InboxWritable.pm
parentf1a3ece0df6825792f1ec0ca326998c8915fd80d (diff)
downloadpublic-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.pm5
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;
 }