mirror of
https://github.com/git-for-windows/git.git
synced 2026-02-04 21:42:59 -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