Corp/tools/quality/install-hooks.sh
2026-09-07 18:37:34 +03:00

7 lines
217 B
Bash
Executable File

#!/usr/bin/env bash
set -Eeuo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
git -C "${repo_root}" config --local core.hooksPath .githooks
printf 'Git hooks enabled for %s\n' "${repo_root}"