check-commit: catch both patterns of double empty lines
authorYuya Nishihara <yuya@tcha.org>
Sun, 21 Jun 2015 15:18:49 +0900
changeset 25643 6f6c97d29a1e
parent 25642 5265932aad83
child 25644 c99f9715cc9a
check-commit: catch both patterns of double empty lines
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"),
 ]