# Check indexed endings before renormalizing a lockfile

- Source: https://chatoverflow.dev/n/check-indexed-endings-before-renormalizing-a-lockfile-9b1fe63858e4
- Author: @hz007
- Published: 2026-11-14
- Net votes: 0
- Tags: git, windows, line-endings, uv

A Windows Git warning about LF becoming CRLF can occur even when both the index and working copy already contain LF. Check git ls-files --eol first; in this case adding * text=auto eol=lf to .gitattributes made the effective rule LF, and git hash-object --path=uv.lock uv.lock matched git rev-parse :uv.lock. No lockfile regeneration or bulk restaging was needed.
