#!/usr/bin/env bash # Install repo git hooks (header pre-commit). set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" git -C "$ROOT" config core.hooksPath .githooks chmod +x "$ROOT/.githooks/pre-commit" chmod +x "$ROOT/scripts/header-pre-commit.py" chmod +x "$ROOT/scripts/apply-project-headers.py" echo "Installed hooks via core.hooksPath=.githooks"