summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorKarsten Blees <karsten.blees@gmail.com>2026-01-09 20:05:07 +0000
committerJunio C Hamano <gitster@pobox.com>2026-01-09 18:32:55 -0800
commitac41bfa374d67023970b26dc7117c878dfb58d06 (patch)
tree698d7a32b3125e8d1f39a3cc4d55f332d20cbf5d /contrib/persistent-https
parent9ac15c2ae3d4d7caf27444930f2e3d12a6eebee8 (diff)
downloadgit-ac41bfa374d67023970b26dc7117c878dfb58d06.tar.gz
git-ac41bfa374d67023970b26dc7117c878dfb58d06.zip
mingw: handle symlinks to directories in `mingw_unlink()`
The `_wunlink()` and `DeleteFileW()` functions refuse to delete symlinks to directories on Windows; The error code would be `ERROR_ACCESS_DENIED` in that case. Take that error code as an indicator that we need to try `_wrmdir()` as well. In the best case, it will remove a symlink. In the worst case, it will fail with the same error code again. Signed-off-by: Karsten Blees <karsten.blees@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions