mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-04 10:11:56 -05:00
It was already decided inef22148(clean: do not traverse mount points, 2018-12-07) that we shouldn't traverse NTFS junctions/bind mounts when using `git clean`, partly because they're sometimes used in worktrees. But the same check wasn't applied to `remove_dir_recurse()` in `dir.c`, which `git worktree remove` uses. So removing a worktree suffers the same problem we had previously with `git clean`. Let's add the same guard fromef22148. Signed-off-by: Maks Kuznia <makskuznia244@gmail.com>
112 KiB
112 KiB