Skip to content

Commit cdee2fc

Browse files
committed
fixed warning when no parent found for a commit
1 parent e270521 commit cdee2fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Gitonomy/Git/Commit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public function getParentHashes()
115115
*/
116116
public function getParents()
117117
{
118+
$result = array();
118119
foreach ($this->getData('parentHashes') as $parentHash) {
119120
$result[] = $this->repository->getCommit($parentHash);
120121
}

0 commit comments

Comments
 (0)