git.cweiske.de
/
phorkie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8f00ff1
)
no error when no description
author
Christian Weiske
<cweiske@cweiske.de>
Mon, 26 Mar 2012 20:54:22 +0000
(22:54 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Mon, 26 Mar 2012 20:54:22 +0000
(22:54 +0200)
src/Phorkie/Repository.php
patch
|
blob
|
history
diff --git
a/src/Phorkie/Repository.php
b/src/Phorkie/Repository.php
index ebd420f431374abed39c96ffa1332078665ac82e..531ff6872950fd4dafa9715fc0550a9dedbfc3ed 100644
(file)
--- a/
src/Phorkie/Repository.php
+++ b/
src/Phorkie/Repository.php
@@
-72,6
+72,9
@@
class Repository
public function getDescription()
{
+ if (!is_readable($this->repoDir . '/.git/description')) {
+ return null;
+ }
return file_get_contents($this->repoDir . '/.git/description');
}