#!/usr/bin/env bash # # Install the repo's git hooks (currently the pre-push test gate). set -euo pipefail REPO="$(cd "$(dirname "$0")/.." && pwd)" cd "$REPO" git config core.hooksPath .githooks chmod +x .githooks/pre-push scripts/preflight.sh echo "pre-push hook installed (bypass: SKIP_PREFLIGHT=1 or git push --no-verify)"