-
[OPIK-7235] [INFRA] fix: make hooks uses pre-commit install -f to avoid migration mode (#7344)
发布于
2026-07-06 08:13:00 +00:00 The pre-commit consolidation (OPIK 6980) left
make hooksrunning plain
pre-commit install. Contributors who still had the old.git/hooks/pre-commit
get pre-commit's "migration mode": the old hook is moved topre-commit.legacy
and chained on every commit — and it calls scripts 6980 deleted, so it errors.
Re-runningmake hooksdidn't help (no-f).Use
pre-commit install -f(no-op overwrite on a clean clone) andrm -fany
leftoverpre-commit.legacy.Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com
下载附件