]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www: remove unnecessary Git object reference
authorEric Wong <e@80x24.org>
Tue, 16 Apr 2019 01:19:42 +0000 (01:19 +0000)
committerEric Wong <e@80x24.org>
Tue, 16 Apr 2019 20:58:18 +0000 (20:58 +0000)
We access the Git object via the Inbox object nowadays, so
there's no point in having a shortcut to it, anymore.

lib/PublicInbox/WWW.pm

index 798e8b17c04b007400db465ab84f0b889bec9972..aa05a23dda4aa4b1fb765817d93d40f766e63300 100644 (file)
@@ -188,7 +188,6 @@ sub invalid_inbox ($$) {
        my ($ctx, $inbox) = @_;
        my $obj = $ctx->{www}->{pi_config}->lookup_name($inbox);
        if (defined $obj) {
-               $ctx->{git} = $obj->git;
                $ctx->{-inbox} = $obj;
                return;
        }