mirror of
https://github.com/git-for-windows/git.git
synced 2026-02-05 07:57:18 -06:00
[`CreateFileW()` requires `FILE_FLAG_BACKUP_SEMANTICS` to create a directory handle](https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew#directories) and errors out with `ERROR_ACCESS_DENIED` without this flag. Fall back to accessing Directory handles this way. This fixes https://github.com/git-for-windows/git/issues/5068