Revert "builtin-commit.c: remove useless check added by faulty cut and paste"