From 2e2a2eefd50ee2fec603ffdc56de4a89296f907f Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 15 Jan 2021 16:37:46 +0100 Subject: [PATCH] Add a warning when trying to run integrity:check-core on git Signed-off-by: Joas Schilling --- core/Command/Integrity/CheckCore.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/Command/Integrity/CheckCore.php b/core/Command/Integrity/CheckCore.php index 6f319abdf7..cca72535f3 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('integrity:check-core can not be used on git checkouts'); + return 2; + } + $result = $this->checker->verifyCoreSignature(); $this->writeArrayInOutputFormat($input, $output, $result); if (count($result) > 0) {