#!/usr/bin/env bash # One-time setup after cloning: point git at the hooks committed in .githooks/. # git deliberately never runs hooks from a fresh clone on its own (that would # be arbitrary code execution on `git clone`), so this is the one manual step. set -euo pipefail cd "$(dirname "$0")/.." git config core.hooksPath .githooks echo "hooks installed: pre-commit (check + test), pre-push (smoke)"