From: Shawn Bohrer Date: Wed, 05 Dec 2007 15:28:16 GMT Subject: Re: * [BUG] "git clean" does not pay attention to its parameters Message-ID: <20071205152816.GA21347@mediacenter.austin.rr.com> In-Reply-To: <7veje1zibm.fsf@gitster.siamese.dyndns.org> On Tue, Dec 04, 2007 at 11:55:41PM -0800, Junio C Hamano wrote: > Does this patch help? I am not sure why the directory side of the code > is written that way, but I have a suspicion that "was a directory > explicitly given as one of the pathspec" check is also bogus, although I > did not touch that part. Before the rewrite in C git clean would refuse to remove a directory if you said: git clean dir without using the -d parameter. Per your suggestion this check causes git clean to remove the directory anyway since you explicitly asked it to.