Differential D21864 Diff 52157 src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
Show All 30 Lines | final protected function updateCommitData( | ||||
PhabricatorRepositoryCommit $commit, | PhabricatorRepositoryCommit $commit, | ||||
PhabricatorRepositoryCommitData $data) { | PhabricatorRepositoryCommitData $data) { | ||||
$ref = $data->getCommitRef(); | $ref = $data->getCommitRef(); | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$author = $ref->getAuthor(); | $author = $ref->getAuthor(); | ||||
$committer = $ref->getCommitter(); | $committer = $ref->getCommitter(); | ||||
$has_committer = (bool)strlen($committer); | $has_committer = $committer !== null && (bool)strlen($committer); | ||||
$identity_engine = id(new DiffusionRepositoryIdentityEngine()) | $identity_engine = id(new DiffusionRepositoryIdentityEngine()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->setSourcePHID($commit->getPHID()); | ->setSourcePHID($commit->getPHID()); | ||||
// See T13538. It is possible to synthetically construct a Git commit with | // See T13538. It is possible to synthetically construct a Git commit with | ||||
// no author and arrive here with NULL for the author value. | // no author and arrive here with NULL for the author value. | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |