7 lines
332 B
Bash
Executable File
7 lines
332 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Ativa os Git hooks do repositório (.githooks/pre-push e .githooks/commit-msg).
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
git config core.hooksPath .githooks
|
|
echo "hooks ativados: git commit valida Conventional Commits e git push executa scripts/verificar.sh (desative com: git config --unset core.hooksPath)"
|