# HG changeset patch # User Yuya Nishihara # Date 1434867529 -32400 # Node ID 6f6c97d29a1e505ded97e24a421f7c08fcecad9a # Parent 5265932aad839b4f010f8307fe4755249d3381e2 check-commit: catch both patterns of double empty lines diff -r 5265932aad83 -r 6f6c97d29a1e contrib/check-commit --- a/contrib/check-commit Sat Jun 20 04:13:25 2015 -0700 +++ b/contrib/check-commit Sun Jun 21 15:18:49 2015 +0900 @@ -29,6 +29,7 @@ (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"), ]