From db3cbd023af6c68b0095037c9b1478cffd150385 Mon Sep 17 00:00:00 2001 From: oqyude Date: Fri, 23 Oct 2026 12:56:10 +0300 Subject: [PATCH] fix(ci): invoke .ci/checks.sh through bash in the pre-commit hook (T39b) pre-commit's `language: script` execs the entry directly, without a shell. Running the script through `bash` removes the dependency on the file mode entirely, so the hook keeps working in checkouts made with core.fileMode =false, from a tarball, or on a filesystem that does not preserve the executable bit. The previous commit (ca450f1) sets the mode to 100755 as well; both are kept because they fail independently. Not pushed. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ccd2f72..07483d5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: Runs .ci/checks.sh: sops path_regex compliance, no `:latest` in container images (with R1.5/R1.8 whitelist), and `nix flake check` (skippable via --no-build). - entry: .ci/checks.sh --no-build + entry: bash .ci/checks.sh --no-build language: script pass_filenames: false always_run: true