cannot spawn .git/hooks/pre-commit
What causes it and how to fix it:
- A test that plants a git hook without chmod passes on Windows and fails on Linux CIGit ignores a hook without the executable bit, but Git for Windows does not check that bit and runs a hook that starts with #!/bin/sh, so a fixture that writes .git/hooks/pre-commit with writeFileSync blocks the commit locally and not on Linux CI; chmod 0o755 after writing (harmless on Windows), and commit hook scripts with git add --chmod=+xCause and fix →