mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Use stable commit identifier to load repository commit
Summary: Fixes T5113. This was caught in the crossfire of cleaning up the DiffusionRequest "commit" properties. Test Plan: Loaded `/rXnnnn` with some of the `nnn` missing. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T5113 Differential Revision: https://secure.phabricator.com/D9253
This commit is contained in:
parent
2133e61048
commit
38b17157fa
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ abstract class DiffusionRequest {
|
|||
$commit = id(new PhabricatorRepositoryCommit())->loadOneWhere(
|
||||
'repositoryID = %d AND commitIdentifier = %s',
|
||||
$repository->getID(),
|
||||
$this->getCommit());
|
||||
$this->getStableCommit());
|
||||
if ($commit) {
|
||||
$commit->attachRepository($repository);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue