Re: [BUG] "git clean -df ." silently doesn't delete folders with stale .nfs* files
- From
- Yuri <yuri@rawbw.com>
- Date
- Jun 10, 2024, 23:27 UTC
- Message-ID
- <e8feffd0-ba6d-4aae-8c80-3d6482896b08@rawbw.com>
- In-Reply-To
- <xmqqikygzdgk.fsf@gitster.g>
On 6/10/24 14:37, Junio C Hamano wrote:
Show 5 quoted lines
> But .nfs* files are not something you as an application are not > supposed to touch, so a directory that still contains one cannot be > removed, either. It's a limitation (I wouldn't call it a "bug") of > NFS. You can kill the process (or wait until they exit) holding the > file open and then run "clean -df" again, perhaps.
With the '-f' the user tells git to remove all, and if this doesn't work git should tell the user that this didn't work for the .nfsNNNNNNN file and for the directory as well.
Why is git quiet about leaving the files. It should complain.
Or maybe there should be a verbosity option, like -v 10, that would make git complain about such things.
Thanks,
Yuri