about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-02-16 20:39:08 +0000
committerEric Wong <e@80x24.org>2017-02-16 20:39:28 +0000
commitf99f1c9f53c9d746f7223b457e386dbb20b57c07 (patch)
treecb79ff1fb849690a7f23b9df84c420b9813722fe
parentf6244586ba4f5a5e7575e1254be8c9bbe303fce9 (diff)
downloadpublic-inbox-f99f1c9f53c9d746f7223b457e386dbb20b57c07.tar.gz
Other VCSes have other means of providing the description.
-rw-r--r--lib/PublicInbox/Repo.pm2
1 files changed, 2 insertions, 0 deletions
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;