Page MenuHomePhabricator

D7488.id16873.diff
No OneTemporary

D7488.id16873.diff

Index: src/applications/config/check/PhabricatorSetupCheckBinaries.php
===================================================================
--- src/applications/config/check/PhabricatorSetupCheckBinaries.php
+++ src/applications/config/check/PhabricatorSetupCheckBinaries.php
@@ -94,6 +94,32 @@
}
}
+ $table = new PhabricatorRepository();
+ $vcses = queryfx_all(
+ $table->establishConnection('r'),
+ 'SELECT DISTINCT versionControlSystem FROM %T',
+ $table->getTableName());
+
+ foreach ($vcses as $vcs) {
+ switch ($vcs['versionControlSystem']) {
+ case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
+ if (!Filesystem::binaryExists('git-http-backend')) {
+ $message = pht(
+ "On some systems, this binary lives in '/usr/lib/git' or ".
+ "a folder that is not on the standard path. Without this ".
+ "binary, you will not be able to serve Git repositories ".
+ "over HTTP.");
+ $this->raiseWarning('git-http-backend', $message);
+ }
+ break;
+ case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
+ break;
+ case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL:
+ break;
+ default:
+ break;
+ }
+ }
}
private function raiseWarning($bin, $message) {
@@ -122,7 +148,7 @@
->setName(pht("Missing '%s' Binary", $bin))
->setSummary(
pht("The '%s' binary could not be located or executed.", $bin))
- ->setMessage($preamble.' '.$message)
+ ->setMessage($preamble."\n\n".$message)
->addPhabricatorConfig('environment.append-paths');
}

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 12, 5:56 PM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7591205
Default Alt Text
D7488.id16873.diff (1 KB)

Event Timeline