Skip to content

Commit 247309a

Browse files
feat: new updated deps
1 parent 1c3eacc commit 247309a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.husky/pre-push

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
1+
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
22

3-
# RESTRICTED_BRANCHES="^(main)$"
3+
RESTRICTED_BRANCHES="^(main)$"
44

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

0 commit comments

Comments
 (0)