chore: further tighten git pre-receive hook

This commit is contained in:
Stefan Reimer 2021-03-26 13:27:20 +01:00
parent ef9c6279e7
commit bc6d5c45a8

View File

@ -8,7 +8,7 @@
set -e set -e
zero_commit='0000000000000000000000000000000000000000' zero_commit='0000000000000000000000000000000000000000'
msg_regex='^((fixup! |squash! )?(\w+)(?:\(([^\)\s]+)\))?: (.+))(?:\n|$){0,2}?((?:^.+(\n|$))+(?:\n|$){0,2}?)*((?:^.+(\n|$))+)*' msg_regex='^((fixup! |squash! )?(fix|feat|build|chore|ci|docs|style|refactor|perf|test)(?:\(([^\)\s]+)\))?: (.+))(?:\n|$){0,2}?((?:^.+(\n|$))+(?:\n|$){0,2}?)*((?:^.+(\n|$))+)*'
while read -r oldrev newrev refname; do while read -r oldrev newrev refname; do
# Branch or tag got deleted, ignore the push # Branch or tag got deleted, ignore the push