diff options
author | Daniel Smith <daniel.smith@qt.io> | 2020-08-13 10:29:49 +0200 |
---|---|---|
committer | Daniel Smith <Daniel.Smith@qt.io> | 2020-08-14 09:24:15 +0000 |
commit | 14803ef10d22207bd6905eeef8861727b2d61d5e (patch) | |
tree | a5bf7773b98f3435e9bdc0c8dbf01004e8d6eaa4 /git-hooks | |
parent | a94d99a147e1c48125ed1a8795f969f44c75df70 (diff) | |
download | qtrepotools-14803ef10d22207bd6905eeef8861727b2d61d5e.tar.gz |
Allow periods in summary when 'etc' is the last word
Fixes: QTQAINFRA-3866
Change-Id: I0872dc2880f3ceb60c6efeb15d72b6bf627c4051
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks/sanitize-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 5d97553..72797e8 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -437,7 +437,7 @@ while (<MSG>) { if (/\bQT[A-Z]+-\d+\b/) { complain_cln("Bug reference in summary", "log"); } - if (/\.$/) { + if (/(?<!etc)\.$/) { complain_cln("Summary ends with period", "log"); } # Detect wrong tense, but exclude cases like 'Speed up ...' |