#!/usr/bin/env bash set -euo pipefail repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" git -C "$repo_root" config core.hooksPath .githooks chmod +x "$repo_root"/.githooks/* chmod +x "$repo_root"/scripts/check_doc_code_sync.py chmod +x "$repo_root"/scripts/check_commit_message.py echo "Installed local git hooks from .githooks" echo "Active hooks path: $(git -C "$repo_root" config core.hooksPath)"