We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b051f2 commit 9230c6aCopy full SHA for 9230c6a
.husky/pre-push
@@ -1,8 +1,8 @@
1
-#!/bin/sh
2
-
3
branch=$(git rev-parse --abbrev-ref HEAD)
4
pattern='^[a-z][a-z0-9\/\-]{1,29}$'
5
+bash << EOF
+
6
if [[ ! "$branch" =~ $pattern ]]; then
7
echo """
8
❌ Invalid branch name: '$branch'
@@ -16,4 +16,6 @@ if [[ ! "$branch" =~ $pattern ]]; then
16
exit 1
17
fi
18
19
+EOF
20
21
exit 0
0 commit comments