mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
Fix a view fatal in CommitGraphView when commits are undiscovered
Summary: Ref T13552. See <https://discourse.phabricator-community.org/t/viewing-repository-history-for-svn-repository-causes-unhandled-exception/4225/>. This condition is flipped and can fatal by passing a `NULL` value for `$commit` to a typehinted method. Test Plan: Viewed history page with undiscovered commits. Maniphest Tasks: T13552 Differential Revision: https://secure.phabricator.com/D21458
This commit is contained in:
parent
a39c590442
commit
93ef902ffa
1 changed files with 1 additions and 1 deletions
|
@ -485,7 +485,7 @@ final class DiffusionCommitGraphView
|
||||||
$buildable = null;
|
$buildable = null;
|
||||||
|
|
||||||
$commit = $this->getCommit($hash);
|
$commit = $this->getCommit($hash);
|
||||||
if (!$commit) {
|
if ($commit) {
|
||||||
$buildable = $this->getBuildable($commit);
|
$buildable = $this->getBuildable($commit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue