hexabot/.husky/pre-push

9 lines
219 B
Plaintext
Raw Normal View History

2024-09-10 09:50:11 +00:00
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
RESTRICTED_BRANCHES="^(main)$"
2024-12-10 12:03:37 +00:00
# if echo "$BRANCH_NAME" | grep -Eq "$RESTRICTED_BRANCHES"; then
# echo "Cannot push directly to branch: '${BRANCH_NAME}'"
# exit 1
# fi