]> Sergey Matveev's repositories - public-inbox.git/commitdiff
import: prefix 'inbox' with '-' to denote Inbox ref
authorEric Wong <e@80x24.org>
Tue, 16 Apr 2019 01:10:10 +0000 (01:10 +0000)
committerEric Wong <e@80x24.org>
Tue, 16 Apr 2019 20:58:26 +0000 (20:58 +0000)
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

index fc4e72dc93ea0ce978a93f5224c74e5b8178acc3..c775575597722224d322649b82f85b6d9522e533 100644 (file)
@@ -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} });
        };