Skip to content
Snippets Groups Projects
Commit 897b2fcf authored by Matt Mackall's avatar Matt Mackall
Browse files

check-commit: scan for multiple instances of error patterns

parent 8abd9f78
No related branches found
No related tags found
No related merge requests found
......@@ -50,8 +50,7 @@
printed = node is None
hits = []
for exp, msg in errors:
m = re.search(exp, commit)
if m:
for m in re.finditer(exp, commit):
end = m.end()
trailing = re.search(r'(\\n)+$', exp)
if trailing:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment