Teach git log --check to return an appropriate exit code