Files
sanctuary/scripts/install-git-hooks.sh
koka 94644a28f0
Verification 26.2 / check (push) Canceled after 0s
Import Sanctuary 26.2 collaboration workspace
2026-08-25 22:20:18 +02:00

12 lines
319 B
Bash
Executable File

#!/bin/sh
set -eu
repo_root="$(git rev-parse --show-toplevel)"
cd "$repo_root"
git config core.hooksPath .githooks
chmod +x .githooks/pre-commit .githooks/pre-push
printf '%s\n' "Hooks Sanctuary actives pour $repo_root"
printf '%s\n' "Les commits directs sur main et les pushs non verifies sont maintenant bloques."