Files
Piik/scripts/install-hooks.sh
T

8 lines
204 B
Bash
Executable File

#!/bin/sh
set -eu
repo_root=$(git rev-parse --show-toplevel)
git -C "$repo_root" config core.hooksPath .githooks
sh "$repo_root/scripts/check-project-state.sh"
echo "Git hooks installed from .githooks."