feat(hooks): one-command install-hooks.sh (worktree-safe) #170
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/wiki-format-drift"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
scripts/install-hooks.sh— one command to activate the pre-push gate (was a manualln -sfper clone that's easy to skip), plus AGENTS.md / quality-gates pointer updates.Review correction applied
The original installer symlinked a relative target (
../../scripts/pre-push), which only resolves for a standard<repo>/.git/hookslayout — it breaks in git worktrees / custom git dirs (used by the agent harness) and assumed.git/hooksexists. Reworked to:git rev-parse --git-path hooks(worktree-safe),mkdir -pit,pre-pushexists + is executable.Tested
Installs cleanly; the link resolves to
scripts/pre-push; idempotent.check-format+wiki-lint --strictgreen.Honest caveat
Git hooks are inherently per-clone — this makes activation one command, but each clone/worktree still runs it once. The only fully-automatic gate is a Forgejo CI runner (still postponed). So this is opt-in safety, not server-side enforcement.
🤖 Generated with Claude Code