Revert change to ->description, as the implementation on GPP didn't work.
Zachary Stevens [Sat, 14 Nov 2009 01:22:22 +0000 (01:22 +0000)]
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 {