about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoConfig.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-02-10 21:23:01 +0000
committerEric Wong <e@80x24.org>2017-02-10 21:23:01 +0000
commitad679cb6bedd72bb70df47dbedac5a8d785ecc2b (patch)
tree1d6a30b0137321793ca5a101ea4256f6d9cffec4 /lib/PublicInbox/RepoConfig.pm
parent2be17f6aaa30fe927a410eed2bcca6717cf6f766 (diff)
downloadpublic-inbox-ad679cb6bedd72bb70df47dbedac5a8d785ecc2b.tar.gz
This should hopefully allow us to organize our code better
Diffstat (limited to 'lib/PublicInbox/RepoConfig.pm')
-rw-r--r--lib/PublicInbox/RepoConfig.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/RepoConfig.pm b/lib/PublicInbox/RepoConfig.pm
index 32346852..7a1b316c 100644
--- a/lib/PublicInbox/RepoConfig.pm
+++ b/lib/PublicInbox/RepoConfig.pm
@@ -5,6 +5,7 @@ use strict;
 use warnings;
 use PublicInbox::Inbox;
 use PublicInbox::Config;
+use PublicInbox::Repo;
 require PublicInbox::Hval;
 
 sub new {
@@ -82,7 +83,7 @@ sub lookup {
 
         # of course git is the default VCS
         $rv->{vcs} ||= 'git';
-        $self->{-cache}->{$repo_path} = $rv;
+        $self->{-cache}->{$repo_path} = PublicInbox::Repo->new($rv);
 }
 
 1;