mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Fix fatal in commit message parser
Summary: See D1195, which fataled this daemon. https://secure.phabricator.com/daemon/log/2966/ Test Plan: Applied this patch to secure.phabricator.com, restarted daemon, it picked up D1203. Reviewers: btrahan, jungejason, mareksapota Reviewed By: btrahan CC: aran, btrahan, mareksapota Differential Revision: 1204
This commit is contained in:
parent
2efd8fe971
commit
51b8168253
1 changed files with 2 additions and 4 deletions
|
@ -96,11 +96,9 @@ abstract class PhabricatorRepositoryCommitMessageParserWorker
|
|||
$commit->getPHID());
|
||||
|
||||
if ($revision->getStatus() != DifferentialRevisionStatus::COMMITTED) {
|
||||
$committer = null;
|
||||
$message = null;
|
||||
if ($commit->getDetail('authorPHID')) {
|
||||
$committer = $commit->getDetail('authorPHID');
|
||||
} else {
|
||||
$committer = $data->getCommitDetail('authorPHID');
|
||||
if (!$committer) {
|
||||
$committer = $revision->getAuthorPHID();
|
||||
$message = 'Change committed by '.$commit->getAuthorName().'.';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue