From 416ba2fdab4f6de20ad7ec3656a057bb01b17339 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 10 Feb 2017 21:27:11 +0000 Subject: config: move try_cat function from inbox This allows RepoConfig to be independent of the PublicInbox::Inbox class. --- lib/PublicInbox/RepoConfig.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/PublicInbox/RepoConfig.pm') diff --git a/lib/PublicInbox/RepoConfig.pm b/lib/PublicInbox/RepoConfig.pm index 7a1b316c..fb1fd584 100644 --- a/lib/PublicInbox/RepoConfig.pm +++ b/lib/PublicInbox/RepoConfig.pm @@ -3,7 +3,6 @@ package PublicInbox::RepoConfig; use strict; use warnings; -use PublicInbox::Inbox; use PublicInbox::Config; use PublicInbox::Repo; require PublicInbox::Hval; @@ -54,7 +53,7 @@ sub lookup { # gitweb compatibility foreach my $key (qw(description cloneurl)) { - $rv->{$key} = PublicInbox::Inbox::try_cat("$path/$key"); + $rv->{$key} = PublicInbox::Config::try_cat("$path/$key"); } $rv->{desc_html} = -- cgit v1.2.3-24-ge0c7