From f99f1c9f53c9d746f7223b457e386dbb20b57c07 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Feb 2017 20:39:08 +0000 Subject: repo: only read description if git Other VCSes have other means of providing the description. --- lib/PublicInbox/Repo.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/PublicInbox/Repo.pm b/lib/PublicInbox/Repo.pm index e53d6975..ceebe5c4 100644 --- a/lib/PublicInbox/Repo.pm +++ b/lib/PublicInbox/Repo.pm @@ -17,6 +17,8 @@ sub description { my ($self) = @_; my $desc = $self->{description}; return $desc if defined $desc; + return unless $self->{vcs} eq 'git'; # TODO + $desc = PublicInbox::Config::try_cat("$self->{path}/description"); local $/ = "\n"; chomp $desc; -- cgit v1.2.3-24-ge0c7