Artifact c7a8aec489ef8810ba2e43c84802efdb6dcfe1f4b1e55ac3bbad348826235a4e:
- Executable file
.githooks/pre-commit
— part of check-in
[9197f23350]
at
2026-04-30 13:09:30
on branch trunk
— fix(hooks): replace broken pre-commit with make ci-fast
The previous pre-commit ran 'go test ./leaf/agent/' from repo root, which fails because leaf is a separate Go module. The hook had been masked by a global core.hooksPath override; activating local .githooks/ via 'make setup-hooks' (added in this PR) exposed the breakage.
Replace with the same pattern as pre-push: 'make ci-fast' (~6s in this repo). Skip with: git commit --no-verify. (user: [email protected], size: 302) [annotate] [blame] [check-ins using] [more...]
#!/usr/bin/env bash # Pre-commit hook — runs `make ci-fast` (~30-60s) to catch obvious breakage # before the commit lands. Mirrors a fast subset of GitHub CI. # # Skip with: git commit --no-verify set -e echo "[pre-commit] running make ci-fast..." cd "$(git rev-parse --show-toplevel)" make ci-fast