From ad679cb6bedd72bb70df47dbedac5a8d785ecc2b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 10 Feb 2017 21:23:01 +0000 Subject: repo: add class for representing a code repo This should hopefully allow us to organize our code better --- lib/PublicInbox/RepoConfig.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/RepoConfig.pm') 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; -- cgit v1.2.3-24-ge0c7