Page MenuHomePhabricator

D11100.diff
No OneTemporary

D11100.diff

diff --git a/src/applications/config/check/PhabricatorSetupCheckRepositories.php b/src/applications/config/check/PhabricatorSetupCheckRepositories.php
--- a/src/applications/config/check/PhabricatorSetupCheckRepositories.php
+++ b/src/applications/config/check/PhabricatorSetupCheckRepositories.php
@@ -3,6 +3,25 @@
final class PhabricatorSetupCheckRepositories extends PhabricatorSetupCheck {
protected function executeChecks() {
+
+ $cluster_services = id(new AlmanacServiceQuery())
+ ->setViewer(PhabricatorUser::getOmnipotentUser())
+ ->withServiceClasses(
+ array(
+ 'AlmanacClusterRepositoryServiceType',
+ ))
+ ->setLimit(1)
+ ->execute();
+ if ($cluster_services) {
+ // If cluster repository services are defined, these checks aren't useful
+ // because some nodes (like web nodes) will usually not have any local
+ // repository information.
+
+ // Errors with this configuration will still be detected by checks on
+ // individual repositories.
+ return;
+ }
+
$repo_path = PhabricatorEnv::getEnvConfig('repository.default-local-path');
if (!$repo_path) {

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 3:25 PM (5 h, 3 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739328
Default Alt Text
D11100.diff (1 KB)

Event Timeline