* build-aux/git-hooks/prepare-commit-msg: Don't detect markdown
quotes here...
* build-aux/git-hooks/commit-msg: but here, to intercept
interactively composed log messages.
(cherry picked from commit
ba6779ab2afcd3177c9c118a0383aa21ad1ab45f)
status = 1
}
+ /(^|[^\\])`[^'\''`]+`/ {
+ print "Markdown-style quotes in commit message"
+ status = 1
+ }
+
nlines == 0 && $0 !~ non_space { next }
{ nlines++ }
print \"'Signed-off-by:' in commit message\"
status = 1
}
- /(^|[^\\\\])\`[^'\`]+\`/ {
- print \"Markdown-style quotes in commit message\"
- status = 1
- }
END {
if (status != 0) {
print \"Commit aborted; please see the file 'CONTRIBUTE'\"