# HG changeset patch # User Yuya Nishihara # Date 2015-06-21 06:18:49 # Node ID 6f6c97d29a1e505ded97e24a421f7c08fcecad9a # Parent 5265932aad839b4f010f8307fe4755249d3381e2 check-commit: catch both patterns of double empty lines diff --git a/contrib/check-commit b/contrib/check-commit --- a/contrib/check-commit +++ b/contrib/check-commit @@ -29,6 +29,7 @@ errors = [ (r"^# .*\n.*\.\s+$", "don't add trailing period on summary line"), (r"^# .*\n.{78,}", "summary line too long (limit is 78)"), (r"^\+\n \n", "adds double empty line"), + (r"^ \n\+\n", "adds double empty line"), (r"^\+[ \t]+def [a-z]+_[a-z]", "adds a function with foo_bar naming"), ]