1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 16:30:59 +01:00

Use relatives in commit summary migration

Test Plan: Ran it on test DB.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5061
This commit is contained in:
vrana 2013-02-21 16:25:01 -08:00
parent 2b10173a03
commit 8fcf4d5ac3

View file

@ -10,9 +10,9 @@ foreach ($commits as $commit) {
continue;
}
$data = id(new PhabricatorRepositoryCommitData())->loadOneWhere(
'commitID = %d',
$commit->getID());
$data = $commit->loadOneRelative(
new PhabricatorRepositoryCommitData(),
'commitID');
if (!$data) {
continue;