Revert change to ->description, as the implementation on GPP didn't work.
[catagits/Gitalist.git] / lib / Gitalist / Git / Project.pm
index 1548e00..36f1cca 100644 (file)
@@ -316,13 +316,12 @@ FIXME Should this return objects?
     }
 
     method _build_description {
+        my $description = "";
         eval {
-            return $self->gpp->description;
+            $description = $self->path->file('description')->slurp;
+            chomp $description;
         };
-        if ($@) {
-            return "Unnamed repository.";
-        }
-
+        return $description;
     }
 
     method _build_owner {