summaryrefslogtreecommitdiff
path: root/scripts/git-hooks/commit-msg
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/git-hooks/commit-msg')
-rwxr-xr-xscripts/git-hooks/commit-msg3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/git-hooks/commit-msg b/scripts/git-hooks/commit-msg
index 173210380..3e91e8ea4 100755
--- a/scripts/git-hooks/commit-msg
+++ b/scripts/git-hooks/commit-msg
@@ -62,6 +62,9 @@ sub bad_first_line($)
$line =~ /:/
or return 'missing colon on first line of log message';
+ $line =~ /\.$/
+ and return 'do not use a period "." at the end of the first line';
+
# The token(s) before the colon on the first line must be on our list
# Tokens may be space- or comma-separated.
(my $pre_colon = $line) =~ s/:.*//;