mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-01-14 01:02:04 +03:00
CI: exclude signed-off-by/reviewed-by from 72 char limit
Allow an author or reviewer's name and email address to exceed the 72 character limit enforced by the commitcheck target. Reviewed-by: RageLtMan <rageltman@sempervictus> Reviewed-by: Rob Norris <robn@despairlabs.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #18030
This commit is contained in:
parent
25d755e108
commit
8c1eaea952
@ -7,7 +7,9 @@ REF="HEAD"
|
||||
test_commit_bodylength()
|
||||
{
|
||||
length="72"
|
||||
body=$(git log --no-show-signature -n 1 --pretty=%b "$REF" | grep -Ev "http(s)*://" | grep -E -m 1 ".{$((length + 1))}")
|
||||
body=$(git log --no-show-signature -n 1 --pretty=%b "$REF" |
|
||||
grep -Evi -e "http(s)*://" -e "signed-off-by:" -e "reviewed-by:" |
|
||||
grep -E -m 1 ".{$((length + 1))}")
|
||||
if [ -n "$body" ]; then
|
||||
echo "error: commit message body contains line over ${length} characters"
|
||||
return 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user