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
fix(snapshot): verify revert deletions against a full tree listing
The per-file 'ls-tree <hash> -- <pathspec>' check behaved differently
across platforms for unusual filenames, so revert either kept files it
should delete or vice versa depending on OS. List the snapshot tree once
per patch with core.quotepath=false (the same mechanism patch() uses)
and check membership in code: deterministic on every platform, one git
call per snapshot instead of per file, and still fails safe — if the
listing errors, files are kept rather than deleted on an unverified
miss.
0 commit comments