aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/git-hooks/commit-msg
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/git-hooks/commit-msg')
-rwxr-xr-xbuild-aux/git-hooks/commit-msg8
1 files changed, 7 insertions, 1 deletions
diff --git a/build-aux/git-hooks/commit-msg b/build-aux/git-hooks/commit-msg
index 5b07b6c5d65..ea8d9098b37 100755
--- a/build-aux/git-hooks/commit-msg
+++ b/build-aux/git-hooks/commit-msg
@@ -62,7 +62,13 @@ exec $awk -v at_sign="$at_sign" -v cent_sign="$cent_sign" '
62 } 62 }
63 } 63 }
64 64
65 /^#/ { next } 65 /^#/ {
66 # Ignore every line after a scissors line.
67 if (/^# *---* *(>[8%]|[8%]<) *---* *$/) { exit }
68
69 # Ignore comment lines.
70 next
71 }
66 72
67 !/^.*$/ { 73 !/^.*$/ {
68 print "Invalid character (not UTF-8) in commit message" 74 print "Invalid character (not UTF-8) in commit message"