fail gently when checking git commit