`git-commit-summary-max-length' should be a number, not a symbol. `git-commit-major-mode' should be checked more carefully, as otherwise exploits are possible (e.g. if it is `erase-buffer' or some more dangerous function of the user's environment).