about summary refs log tree commit homepage
path: root/lib/PublicInbox/InboxWritable.pm
diff options
context:
space:
mode:
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;
 }