Skip to content

Commit

Permalink
fix: temporarily comment pre push
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedAliBouhaouala committed Jan 25, 2025
1 parent b355981 commit 4709fbd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
# BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)

RESTRICTED_BRANCHES="^(main)$"
# RESTRICTED_BRANCHES="^(main)$"

if echo "$BRANCH_NAME" | grep -Eq "$RESTRICTED_BRANCHES"; then
echo "Cannot push directly to branch: '${BRANCH_NAME}'"
exit 1
fi
# if echo "$BRANCH_NAME" | grep -Eq "$RESTRICTED_BRANCHES"; then
# echo "Cannot push directly to branch: '${BRANCH_NAME}'"
# exit 1
# fi

0 comments on commit 4709fbd

Please sign in to comment.