test: post_commit_hook

* fixing the check message problem with multiline bullet introduced by
  stripping the lines from the git call output.
* code coverage up by 2%