]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
repo: only read description if git
authorEric Wong <e@80x24.org>
Thu, 16 Feb 2017 20:39:08 +0000 (20:39 +0000)
committerEric Wong <e@80x24.org>
Thu, 16 Feb 2017 20:39:28 +0000 (20:39 +0000)
Other VCSes have other means of providing the description.

lib/PublicInbox/Repo.pm

index e53d6975dcd6df658913c6657c65ca4b83e2e00f..ceebe5c42f8257238a6e04f5fd8536fd9f098d27 100644 (file)
@@ -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;