From: Eric Wong Date: Thu, 16 Feb 2017 20:39:08 +0000 (+0000) Subject: repo: only read description if git X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f99f1c9f53c9d746f7223b457e386dbb20b57c07;p=thirdparty%2Fpublic-inbox.git repo: only read description if git Other VCSes have other means of providing the description. --- diff --git a/lib/PublicInbox/Repo.pm b/lib/PublicInbox/Repo.pm index e53d6975d..ceebe5c42 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;