Page MenuHomePhabricator

D11100.id.diff
No OneTemporary

D11100.id.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
Sat, Dec 21, 10:40 PM (10 h, 35 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6916334
Default Alt Text
D11100.id.diff (1 KB)

Event Timeline