Browse Source

Fix: pre-receive-git-hook regex more tolerant

pull/39/head
Stefan Reimer 10 months ago
parent
commit
f45066e3e2
  1. 2
      scripts/git-pre-receive-hook.sh

2
scripts/git-pre-receive-hook.sh

@ -8,7 +8,7 @@
set -e
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
# Branch or tag got deleted, ignore the push

Loading…
Cancel
Save