Differential D25002 Diff 39 src/applications/repository/engine/PhabricatorRepositoryMirrorEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/engine/PhabricatorRepositoryMirrorEngine.php
Show All 10 Lines | public function pushToMirrors() { | ||||
$repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
if (!$repository->canMirror()) { | if (!$repository->canMirror()) { | ||||
return; | return; | ||||
} | } | ||||
if (PhabricatorEnv::getEnvConfig('phabricator.silent')) { | if (PhabricatorEnv::getEnvConfig('phabricator.silent')) { | ||||
$this->log( | $this->log( | ||||
pht('Phabricator is running in silent mode; declining to mirror.')); | pht('%s is running in silent mode; declining to mirror.', | ||||
PhabricatorPlatformSite::getName())); | |||||
return; | return; | ||||
} | } | ||||
$uris = id(new PhabricatorRepositoryURIQuery()) | $uris = id(new PhabricatorRepositoryURIQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withRepositories(array($repository)) | ->withRepositories(array($repository)) | ||||
->execute(); | ->execute(); | ||||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0