1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +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(),
$target);
if (!$commit) {
return false;
}
$data = $commit->loadCommitData();
if (!$data) {
return false;