no error when no description
[phorkie.git] / src / Phorkie / Repository.php
index ebd420f431374abed39c96ffa1332078665ac82e..531ff6872950fd4dafa9715fc0550a9dedbfc3ed 100644 (file)
@@ -72,6 +72,9 @@ class Repository
 
     public function getDescription()
     {
 
     public function getDescription()
     {
+        if (!is_readable($this->repoDir . '/.git/description')) {
+            return null;
+        }
         return file_get_contents($this->repoDir . '/.git/description');
     }
 
         return file_get_contents($this->repoDir . '/.git/description');
     }