Skip to content

Commit e92361d

Browse files
committed
Merge pull request #62 from neiluJ/fix-commit-warning
fixed warning when no parent found for a commit
2 parents e270521 + cdee2fc commit e92361d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Gitonomy/Git/Commit.php

+1
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)