git-hooks.nix
git-hooks.nix copied to clipboard
bug: `pre-commit's script is installed in migration mode`
I randomly started getting:
bug: pre-commit's script is installed in migration mode
run `pre-commit install -f --hook-type commit-msg` to fix this
unsure where the issue is. I did find https://github.com/pre-commit/pre-commit/issues/1419 and commented there, however, it was locked by the project owner there unfortunately, suggesting we might be the culprit.
Any ideas?
git config --unset-all core.hooksPath
pre-commit install -f --hook-type commit-msg
fixed it, but I am unsure if I have now bypassed some of the logic from git-hooks.nix.