mirror of
https://github.com/git-for-windows/git.git
synced 2026-02-04 12:24:55 -06:00
mingw_rename: support ReFS on Windows 2022 (#5515)
Git on Windows 2022 fails to write config files on ReFS with the error message "Function not implemented". The reason is that `ERROR_NOT_SUPPORTED` is reported (not `ERROR_INVALID_PARAMETER`, as expected). Let's handle both errors the same: by falling back to the best-effort option, namely to rename without POSIX semantics. This fixes https://github.com/git-for-windows/git/issues/5427
This commit is contained in:
commit
49d26649d4
@ -2606,7 +2606,7 @@ repeat:
|
||||
* current system doesn't support FileRenameInfoEx. Keep us
|
||||
* from using it in future calls and retry.
|
||||
*/
|
||||
if (gle == ERROR_INVALID_PARAMETER) {
|
||||
if (gle == ERROR_INVALID_PARAMETER || gle == ERROR_NOT_SUPPORTED) {
|
||||
supports_file_rename_info_ex = 0;
|
||||
goto repeat;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user