1
0
Fork 0
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:
epriestley 2011-12-13 18:42:26 -08:00
parent 2efd8fe971
commit 51b8168253

View file

@ -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().'.';
}