Page MenuHomePhabricator

D9344.diff
No OneTemporary

D9344.diff

diff --git a/src/applications/repository/daemon/PhabricatorGitGraphStream.php b/src/applications/repository/daemon/PhabricatorGitGraphStream.php
--- a/src/applications/repository/daemon/PhabricatorGitGraphStream.php
+++ b/src/applications/repository/daemon/PhabricatorGitGraphStream.php
@@ -29,7 +29,12 @@
if (!isset($this->parents[$commit])) {
$this->parseUntil($commit);
}
- return $this->parents[$commit];
+ $parents = $this->parents[$commit];
+
+ // NOTE: In Git, it is possible for a commit to list the same parent more
+ // than once. See T5226. Discard duplicate parents.
+
+ return array_unique($parents);
}
public function getCommitDate($commit) {

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 4:43 AM (20 h, 44 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6909532
Default Alt Text
D9344.diff (698 B)

Event Timeline