1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 08:42:41 +01:00

check commit before calling its method

Summary: it's calling pull daemon's failure. This is actually Nick's fix.

Test Plan: Nick already manually ran it on daemon machine.

Reviewers: vrana, nh

Reviewed By: vrana

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D2828
This commit is contained in:
Jason Ge 2012-06-21 18:32:24 -07:00
parent 9444bfa861
commit 06c976b738

View file

@ -264,6 +264,10 @@ final class PhabricatorRepositoryPullLocalDaemon
$repository->getID(), $repository->getID(),
$target); $target);
if (!$commit) {
return false;
}
$data = $commit->loadCommitData(); $data = $commit->loadCommitData();
if (!$data) { if (!$data) {
return false; return false;