Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-01-15 18:37:46 +0300
committerJoas Schilling <coding@schilljs.com>2021-01-18 13:32:50 +0300
commit2e2a2eefd50ee2fec603ffdc56de4a89296f907f (patch)
tree961838005e710c15aed304efaa908bc2c17c8fcd /core
parent90c3013d4015354f8d9f954e6d685bbc0a9d99a1 (diff)
Add a warning when trying to run integrity:check-core on git
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r--core/Command/Integrity/CheckCore.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Command/Integrity/CheckCore.php b/core/Command/Integrity/CheckCore.php
index 6f319abdf74..cca72535f36 100644
--- a/core/Command/Integrity/CheckCore.php
+++ b/core/Command/Integrity/CheckCore.php
@@ -61,6 +61,11 @@ class CheckCore extends Base {
* {@inheritdoc }
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
+ if (!$this->checker->isCodeCheckEnforced()) {
+ $output->writeln('<comment>integrity:check-core can not be used on git checkouts</comment>');
+ return 2;
+ }
+
$result = $this->checker->verifyCoreSignature();
$this->writeArrayInOutputFormat($input, $output, $result);
if (count($result) > 0) {