Under the hood
Git dir-sync cleanup now double-checks a directory's identity before deleting stale files inside it
What
The background process that cleans up stale git pack and lock files during directory syncing now records the target directory's inode (a unique identifier for a specific file or folder on disk) and re-checks that every parent path segment still points to that same directory before deleting anything.
Why
This guards against accidentally deleting files inside the wrong directory if the original directory was replaced, for example via a symlink swap, in the time between when it was listed and when cleanup actually runs.