git-hooks.nix icon indicating copy to clipboard operation
git-hooks.nix copied to clipboard

bug: `pre-commit's script is installed in migration mode`

Open joscha opened this issue 1 year ago • 9 comments

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.

joscha avatar Oct 08 '24 11:10 joscha