Two bugs in setup-hooks.sh: 1. awk+mv to replace a marker block created a 644 temp file, losing the exec bit. chmod +x after every write_block call fixes this. Regression test added to idempotency block. 2. set -euo pipefail in the deployed pre-commit hook caused grep to exit 1 when no files of a given type were staged, aborting the hook. Changed all filter pipes to process substitution with || true so no-match is handled gracefully. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TP4EGbBg3XMcyF28Lx78XJ
5.7 KiB
5.7 KiB