mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-02 02:40:58 +01:00
Fix an issue with viewing an undiscovered commit in Diffusion
Summary: If you load Diffusion between a repository being pulled and discovered, you can end up with a valid commit reference that hasn't been discovered yet. Don't fatal. Test Plan: Saw somewhat-helpful error page instead of fatal. Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D7448
This commit is contained in:
parent
3bf372c60c
commit
70b53c49fd
1 changed files with 3 additions and 1 deletions
|
@ -277,7 +277,9 @@ abstract class DiffusionRequest {
|
|||
'repositoryID = %d AND commitIdentifier = %s',
|
||||
$repository->getID(),
|
||||
$this->getCommit());
|
||||
if ($commit) {
|
||||
$commit->attachRepository($repository);
|
||||
}
|
||||
$this->repositoryCommit = $commit;
|
||||
}
|
||||
return $this->repositoryCommit;
|
||||
|
|
Loading…
Reference in a new issue