From: Pierre Habouzit Subject: Re: [PATCH] git-clean: correct printing relative path Date: Wed, 05 Mar 2008 16:59:43 +0100 Message-ID: <20080305155943.GB15843@artemis.madism.org> References: <20080305094058.GF4793@artemis.madism.org> <20080305141720.GA11542@dpotapov.dyndns.org> <20080305155359.GA15843@artemis.madism.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="/NkBOFFp2J2Af1nK"; protocol="application/pgp-signature"; micalg=SHA1 To: Dmitry Potapov , Git ML , Junio C Hamano X-From: git-owner@vger.kernel.org Wed Mar 05 17:01:29 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1JWw2a-0001LB-Rw for gcvg-git-2@gmane.org; Wed, 05 Mar 2008 17:00:25 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755435AbYCEP7r (ORCPT ); Wed, 5 Mar 2008 10:59:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755413AbYCEP7q (ORCPT ); Wed, 5 Mar 2008 10:59:46 -0500 Received: from pan.madism.org ([88.191.52.104]:56722 "EHLO hermes.madism.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754719AbYCEP7p (ORCPT ); Wed, 5 Mar 2008 10:59:45 -0500 Received: from madism.org (def92-8-82-236-12-71.fbx.proxad.net [82.236.12.71]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "artemis.madism.org", Issuer "madism.org" (not verified)) by hermes.madism.org (Postfix) with ESMTP id 552DC31EA1; Wed, 5 Mar 2008 16:59:44 +0100 (CET) Received: by madism.org (Postfix, from userid 1000) id B47B14DD973; Wed, 5 Mar 2008 16:59:43 +0100 (CET) Mail-Followup-To: Pierre Habouzit , Dmitry Potapov , Git ML , Junio C Hamano Content-Disposition: inline In-Reply-To: <20080305155359.GA15843@artemis.madism.org> X-Face: $(^e[V4D-[`f2EmMGz@fgWK!e.B~2g.{08lKPU(nc1J~z\4B>*JEVq:E]7G-\6$Ycr4<;Z!|VY6Grt]+RsS$IMV)f>2)M="tY:ZPcU;&%it2D81X^kNya0=L]"vZmLP+UmKhgq+u*\.dJ8G!N&=EvlD User-Agent: Madmutt/devel (Linux) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: --/NkBOFFp2J2Af1nK Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On mer, mar 05, 2008 at 03:53:59 +0000, Pierre Habouzit wrote: > On Wed, Mar 05, 2008 at 02:17:20PM +0000, Dmitry Potapov wrote: > > When the given path contains '..' then git-clean incorrectly printed na= mes > > of files. This patch changes cmd_clean to use quote_path() from wt-stat= us. > > Also, "failed to remove ..." message used absolutely path, but not it is > > corrected to use relative path. > >=20 > > Signed-off-by: Dmitry Potapov > > --- > > I resend this patch, because it got filtered by vger.kernel.org > > when I used git-send-email from 1.5.4. >=20 > It didn't FWIW. And as far as it goes for your patch, it misses a #include "wt-status.h" and for me it gives: git clean .. Removing ../ Removing ../git-clean.patch Removing ../stFdw8KY For a tree that had those unclean entries. ../git-clean.patch ../stFdw8KY Removing ../ is clearly wrong both times: it didn't really did that (my current dir was the 't/' dir in the git repository for that) and I didn't specified 'git clean -d'. --=20 =C2=B7O=C2=B7 Pierre Habouzit =C2=B7=C2=B7O madcoder@debia= n.org OOO http://www.madism.org --/NkBOFFp2J2Af1nK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHzsNvvGr7W6HudhwRAmxpAKCqHSgOq6EEQnokXxSdz/MF8uLvawCdFyLg PWrIDACRrBraAR2veL9DYmw= =7uOu -----END PGP SIGNATURE----- --/NkBOFFp2J2Af1nK--