From 38b17157fa96a4f1046b3d729f4641816e8a87f2 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 22 May 2014 10:39:06 -0700 Subject: [PATCH] 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 --- src/applications/diffusion/request/DiffusionRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/diffusion/request/DiffusionRequest.php b/src/applications/diffusion/request/DiffusionRequest.php index a10a196b82..e2c21367c1 100644 --- a/src/applications/diffusion/request/DiffusionRequest.php +++ b/src/applications/diffusion/request/DiffusionRequest.php @@ -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); }