Differential D21864 Diff 52157 src/applications/repository/management/PhabricatorRepositoryManagementRebuildIdentitiesWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/management/PhabricatorRepositoryManagementRebuildIdentitiesWorkflow.php
Show First 20 Lines • Show All 214 Lines • ▼ Show 20 Lines | foreach ($commits as $commit) { | ||||
if ($author_phid !== $identity_phid) { | if ($author_phid !== $identity_phid) { | ||||
$commit->setAuthorIdentityPHID($identity_phid); | $commit->setAuthorIdentityPHID($identity_phid); | ||||
$data->setCommitDetail('authorIdentityPHID', $identity_phid); | $data->setCommitDetail('authorIdentityPHID', $identity_phid); | ||||
$needs_update = true; | $needs_update = true; | ||||
} | } | ||||
$committer_name = $data->getCommitterString(); | $committer_name = $data->getCommitterString(); | ||||
$committer_phid = $commit->getCommitterIdentityPHID(); | $committer_phid = $commit->getCommitterIdentityPHID(); | ||||
if (strlen($committer_name)) { | if (phutil_nonempty_string($committer_name)) { | ||||
$committer_identity = $this->getIdentityForCommit( | $committer_identity = $this->getIdentityForCommit( | ||||
$commit, | $commit, | ||||
$committer_name); | $committer_name); | ||||
$identity_phid = $committer_identity->getPHID(); | $identity_phid = $committer_identity->getPHID(); | ||||
} else { | } else { | ||||
$identity_phid = null; | $identity_phid = null; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines |