From 1b3b386c928b758f75e4dd135e039830b16d382f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 16 Apr 2019 01:10:10 +0000 Subject: import: prefix 'inbox' with '-' to denote Inbox ref This is for consistency with other fields which follow this pattern w.r.t. field-naming when referring to internal fields. --- lib/PublicInbox/Import.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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} }); }; -- cgit v1.2.3-24-ge0c7