mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Fix a commit hook issue where pushing dangerous changes would fatal before hitting the dragon bureaucrats
Summary: See <https://discourse.phabricator-community.org/t/php-fatal-when-using-git-push-d/1317>. The behavioral changes for Herald on initial import from D19265 could leave `$all_updates` undefined if we throw early enough. Test Plan: Pushed a dangerous change, saw dragon bureaucrats again. Differential Revision: https://secure.phabricator.com/D19297
This commit is contained in:
parent
e70c9f72a4
commit
3de002c841
1 changed files with 1 additions and 0 deletions
|
@ -126,6 +126,7 @@ final class DiffusionCommitHookEngine extends Phobject {
|
|||
|
||||
public function execute() {
|
||||
$ref_updates = $this->findRefUpdates();
|
||||
$all_updates = $ref_updates;
|
||||
|
||||
$caught = null;
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue