I have a post-checkout hook that substitutes the new branch name into some skeleton files in the "main" branch of the repository. This seems to cause pre-commit
to indicate failure when it does what I intend, though this is normally correct behavior. Is there an option I'm missing? Can I tell pre-commit
that any file modification by this hook is acceptable?
I see "The hook must exit nonzero on failure or modify files" in the documentation, and my hook does exit with an exit code of 0.