You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vp migrate --full asks to set up pre-commit hooks even when they're already configured #3096
I have a fix ready for this, following the second option: when existing Vite+ hooks are detected (and --hooks/--no-hooks isn't passed), the prompt becomes a Keep/Skip select mirroring the AGENTS.md one, listing the detected hooks, e.g. "Git hooks already configured in .vite-hooks/ (pre-commit, commit-msg)". Keep (default) leaves them unchanged; Skip leaves the hooks setup untouched. Non-interactive behavior is unchanged. Tests included.
Activity
0froq commentedon Oct 18, 2026
I have a fix ready for this, following the second option: when existing Vite+ hooks are detected (and
--hooks/--no-hooksisn't passed), the prompt becomes a Keep/Skip select mirroring theAGENTS.mdone, listing the detected hooks, e.g. "Git hooks already configured in .vite-hooks/ (pre-commit, commit-msg)". Keep (default) leaves them unchanged; Skip leaves the hooks setup untouched. Non-interactive behavior is unchanged. Tests included.Branch: https://github.com/0froq/vite-plus/tree/fix/migrate-existing-hooks-prompt
I also have the first option (skip the prompt and log) ready if you'd prefer that. Happy to open a PR with whichever you like.
fengmk2 commentedon Oct 19, 2026
@0froq send the pr please 👍
fix(migrate): show existing git hooks and offer Keep/Skip
fix(migrate): skip git hooks setup when already configured (voidzero-…