Skip to content

Commit

Permalink
Skip the commit message sanity check
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sjoelund committed Aug 5, 2015
1 parent 6443c24 commit 08f747b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Makefile.common
Expand Up @@ -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)

0 comments on commit 08f747b

Please sign in to comment.