Fix: pre-receive-git-hook regex more tolerant
This commit is contained in:
parent
04f48ea384
commit
ef9c6279e7
@ -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|$))+)+/gm'
|
msg_regex='^((fixup! |squash! )?(\w+)(?:\(([^\)\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
|
||||||
|
Loading…
Reference in New Issue
Block a user