#!/usr/bin/env bash # setup-hooks.sh — installs pre-push hook via core.hooksPath. Idempotent. # Note: NO pre-commit hook — Forgeimizer is a small maintenance fork with # no separate test harness; version/manifest/build/lint checks happen on # pre-push only. set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" cd "$ROOT" git config core.hooksPath .githooks chmod +x .githooks/pre-push chmod +x scripts/preflight.sh chmod +x scripts/verify-version-consistency.sh echo "setup-hooks: core.hooksPath set to .githooks. pre-push live."