]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: bless config
authorEric Wong <e@80x24.org>
Wed, 17 Feb 2021 10:06:57 +0000 (09:06 -0100)
committerEric Wong <e@80x24.org>
Thu, 18 Feb 2021 07:57:14 +0000 (03:57 -0400)
We'll be needing ->url_match from PublicInbox::Config

lib/PublicInbox/LEI.pm

index aa14ca6f587ca5a9e2632be8aab6bf2903b8fffd..12deedd84ecface19a0f9620a0af75903a8f08fd 100644 (file)
@@ -563,6 +563,7 @@ sub _lei_cfg ($;$) {
                qerr($self, "# $f created") if $self->{cmd} ne 'config';
        }
        my $cfg = PublicInbox::Config::git_config_dump($f);
+       bless $cfg, 'PublicInbox::Config';
        $cfg->{-st} = $cur_st;
        $cfg->{'-f'} = $f;
        $self->{cfg} = $PATH2CFG{$f} = $cfg;