mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-27 07:50:57 +01:00
Fix call to getRefType on non-object in PhabricatorRepositoryEngine.php
Summary: Error: Fatal error: Call to a member function getRefType() on a non-object in /opt/phabricator/phabricator/src/applications/repository/engine/PhabricatorRepositoryRefEngine.php on line 197 Test Plan: No more error in daemon.log afterwards Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8278
This commit is contained in:
parent
50ed42761c
commit
1845798771
1 changed files with 5 additions and 5 deletions
|
@ -191,12 +191,12 @@ final class PhabricatorRepositoryRefEngine
|
|||
|
||||
foreach ($cursor_groups as $name => $cursor_group) {
|
||||
if (idx($ref_groups, $name) === null) {
|
||||
$this->log(
|
||||
pht(
|
||||
'Ref %s "%s" no longer exists.',
|
||||
$cursor->getRefType(),
|
||||
$cursor->getRefName()));
|
||||
foreach ($cursor_group as $cursor) {
|
||||
$this->log(
|
||||
pht(
|
||||
'Ref %s "%s" no longer exists.',
|
||||
$cursor->getRefType(),
|
||||
$cursor->getRefName()));
|
||||
$this->markRefDead($cursor);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue