about summary refs log tree commit homepage
path: root/lib/PublicInbox/Import.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-04-16 01:10:10 +0000
committerEric Wong <e@80x24.org>2019-04-16 20:58:26 +0000
commit1b3b386c928b758f75e4dd135e039830b16d382f (patch)
tree940e32a3be48e67e239fe955ab07b0c524d14495 /lib/PublicInbox/Import.pm
parent6e6f7999361925e4c944f308df4bc32a1842cd69 (diff)
downloadpublic-inbox-1b3b386c928b758f75e4dd135e039830b16d382f.tar.gz
This is for consistency with other fields which follow
this pattern w.r.t. field-naming when referring to internal
fields.
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r--lib/PublicInbox/Import.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm
index fc4e72dc..c7755755 100644
--- a/lib/PublicInbox/Import.pm
+++ b/lib/PublicInbox/Import.pm
@@ -30,7 +30,7 @@ sub new {
                 ident => "$name <$email>",
                 mark => 1,
                 ref => $ref,
-                inbox => $ibx,
+                -inbox => $ibx,
                 path_type => '2/38', # or 'v2'
                 lock_path => "$git->{git_dir}/ssoma.lock", # v2 changes this
                 bytes_added => 0,
@@ -178,7 +178,7 @@ sub _update_git_info ($$) {
         run_die([@cmd, 'update-server-info'], undef);
         ($self->{path_type} eq '2/38') and eval {
                 require PublicInbox::SearchIdx;
-                my $ibx = $self->{inbox} || $git_dir;
+                my $ibx = $self->{-inbox} || $git_dir;
                 my $s = PublicInbox::SearchIdx->new($ibx);
                 $s->index_sync({ ref => $self->{ref} });
         };