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.
This commit is contained in:
1 parent
ca450f1332
commit
db3cbd023a
1 file changed
+1
-1
@@ -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
|
||||
Reference in new issue
Block a user