hooks: Implement the commit-msg hook