Fixed pre-commit, not a git repo error