We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88a6f26 commit db50bacCopy full SHA for db50bac
1 file changed
pre_commit_hooks/check-branch-name.sh
@@ -25,7 +25,7 @@ fi
25
26
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
27
28
-if [[ $BRANCH_NAME =~ $EXCLUDE_BRANCH_REGEX ]]; then
+if [[ -n $EXCLUDE_BRANCH_REGEX && $BRANCH_NAME =~ $EXCLUDE_BRANCH_REGEX ]]; then
29
exit 0
30
fi
31
0 commit comments