12 lines
319 B
Bash
Executable File
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."
|