Skip to content

Commit

Permalink
Add hook for testing commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Aug 5, 2015
1 parent b6c518b commit d2ac409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile.common
Expand Up @@ -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) && \
Expand Down
2 changes: 1 addition & 1 deletion common
Submodule common updated 2 files
+14 −0 commit-msg.sh
+4 −0 m4/pre-commit.m4

0 comments on commit d2ac409

Please sign in to comment.