From 050c28901aa6ffff5796d055eddcd96670cc8dd4 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 26 Aug 2023 23:15:12 +0100 Subject: [PATCH] fix(git-hooks): make it executable --- src/Action/GenerateConfigurationFiles.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Action/GenerateConfigurationFiles.php b/src/Action/GenerateConfigurationFiles.php index aa7828e..cea4458 100644 --- a/src/Action/GenerateConfigurationFiles.php +++ b/src/Action/GenerateConfigurationFiles.php @@ -55,6 +55,10 @@ final class GenerateConfigurationFiles $this->filesystem->chmod("{$this->outputDir}/.githooks/pre-push", 0755); } + if ($this->filesystem->exists("{$this->outputDir}/.githooks/prepare-commit-msg")) { + $this->filesystem->chmod("{$this->outputDir}/.githooks/prepare-commit-msg", 0755); + } + return $next([$configurationDataDto, $filesToGenerate]); } }