git-commit: exit non-zero if we fail to commit the index