Detect failure in commit hook and drop the person on the right branch to fix stuff