From 08f747ba8e12620bd88d4695a57c8d0bff8e3995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sj=C3=B6lund?= Date: Wed, 5 Aug 2015 13:14:29 +0200 Subject: [PATCH] Skip the commit message sanity check There is now a commit-msg hook that is installed instead. This makes sure that developers who install the hooks do these checks on commit. --- Makefile.common | 3 --- 1 file changed, 3 deletions(-) diff --git a/Makefile.common b/Makefile.common index 0e2c82efd61..4c3e9b79c7e 100644 --- a/Makefile.common +++ b/Makefile.common @@ -414,10 +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) && \ (! git ls-tree --name-only -r $$commit | egrep "(.*[.](html|png|svg|o|so|la|stamp|a|dll|exe|cab|lnk|msi|log|class|jar|pyc|db|zip|DS_Store|pdf|tex|md5|dep)$$)|SimulationRuntime/cpp/Doc") || exit 1; \ done ! (git rev-list origin/master..HEAD | xargs git grep "Generated by Susan" -- Compiler/Template)