diff options
Diffstat (limited to 'git-hooks/sanitize-commit')
-rwxr-xr-x | git-hooks/sanitize-commit | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 1e96e06..e41cbfb 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -517,6 +517,8 @@ while (<MSG>) { if (!/^\[ChangeLog\]/ && !defined($cfg{changelog})) { complain_ln("Bad form of [ChangeLog] tag", "changelog"); } + } elsif (/^\[[A-Z][- \w]+\]/) { + complain_ln("Likely change-log entry without [ChangeLog] tag", "", -1); } if ($inchangelog) { complain_ln("Missing space between ChangeLog tags and text", "changelog") if (/\][^\s\[]/); |