Re: [BUG] "git clean -df ." silently doesn't delete folders with stale .nfs* files
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 10, 2024, 19:58 UTC
- Message-ID
- <xmqqwmmw1sev.fsf@gitster.g>
- In-Reply-To
- <ae862adb-1475-48e9-bd50-0c07dc42a520@rawbw.com>
Yuri <yuri@rawbw.com> writes:
> NFS sometimes leaves files like .nfsXXXXXXXXXXX which usually means > that some process that has this file open is alive.
Yes, and from everybody's point of view, including "git", a directory with such a file is not yet empty.
> "git clean -df ." was supposed to remove the folder where such file is > located, but it encountered the failure, and silently ignored it and > succeeded.
So "was supposed to remove" above is not quite correct. Where did such a piece of misinformation come from?