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
mixed-line-ending fails on Windows when operating on COMMIT_EDITMSG (--fix=lf) #1267
When committing on a Windows environment with mixed-line-ending configured with --fix=lf, the hook runs against COMMIT_EDITMSG, fixes the CRLF line endings to LF, and exits with code 1, aborting the commit.
mixed-line-ending should either ignore COMMIT_EDITMSG by default or handle system-generated commit message files without failing the commit step on Windows.
Activity
asottile commentedon Jul 24, 2026
probably just needs the same
stagestreatment as the othertexthooksarul-neeve commentedon Jul 24, 2026
@asottile Can I add the stages as
stages: [pre-commit, pre-push, manual]in the hook file for the hookmixed-line-ending?Added stages for the mixed-line-ending