From d2ac409a433dc126b8bfcac271ddaffcabcf57d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sj=C3=B6lund?= Date: Wed, 5 Aug 2015 10:55:05 +0200 Subject: [PATCH] Add hook for testing commit messages --- Makefile.common | 1 + common | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index a939fae271e..0e2c82efd61 100644 --- a/Makefile.common +++ b/Makefile.common @@ -414,6 +414,7 @@ git-clean: git-sanity-check: git-clean test "./Compiler/boot/bootstrap-sources.tar.xz" = "`find . -type f -size +684k | grep -v 3rdParty`" + # These are tested by the commit-msg hook for commit in `git rev-list origin/master..HEAD`; do \ test 50 -ge "`git log --format="%s" $$commit~1..$$commit | wc -c`" || (echo "$$commit has a too long commit summary (leave an empty line after the first if it is not part of the summary)"; git log $$commit~1..$$commit; false) && \ test 72 -ge "`git log --format="%b" $$commit~1..$$commit | wc -L`" || (echo "$$commit has too long commit lines (max 72 characters per line)"; git log $$commit~1..$$commit; false) && \ diff --git a/common b/common index 5316bb36774..ccdc6b74e47 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 5316bb3677448b8f387268052eaf6150a9209bba +Subproject commit ccdc6b74e470657d6d2ec0889dbf1dd4950013c8