hexabot/.husky/pre-push
Mohamed Marrouchi 9764aeeeda build: v2.1.1
2024-12-10 13:03:37 +01:00

9 lines
219 B
Plaintext
Executable File

BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
RESTRICTED_BRANCHES="^(main)$"
# if echo "$BRANCH_NAME" | grep -Eq "$RESTRICTED_BRANCHES"; then
# echo "Cannot push directly to branch: '${BRANCH_NAME}'"
# exit 1
# fi