From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Riesen Subject: [PATCH] Add a test for git-add --ignore-errors Date: Mon, 12 May 2008 19:58:48 +0200 Message-ID: <20080512175848.GF3128@steel.home> References: <47C95E34.1050306@dirk.my1.cc> <20080302154154.GC2973@steel.home> <20080302154238.GD2973@steel.home> <7vtzjpoye6.fsf@gitster.siamese.dyndns.org> <20080512175654.GB3128@steel.home> <20080512175745.GC3128@steel.home> <20080512175810.GD3128@steel.home> <20080512175829.GE3128@steel.home> Reply-To: Alex Riesen Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Johannes Schindelin , Dirk =?iso-8859-15?Q?S=FCsserott?= , Junio C Hamano To: Git Mailing List X-From: git-owner@vger.kernel.org Mon May 12 19:59:42 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 1JvcJJ-0007Ch-0T for gcvg-git-2@gmane.org; Mon, 12 May 2008 19:59:41 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755366AbYELR6v (ORCPT ); Mon, 12 May 2008 13:58:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755312AbYELR6v (ORCPT ); Mon, 12 May 2008 13:58:51 -0400 Received: from mo-p07-ob.rzone.de ([81.169.146.189]:31597 "EHLO mo-p07-ob.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754047AbYELR6u (ORCPT ); Mon, 12 May 2008 13:58:50 -0400 X-RZG-CLASS-ID: mo07 X-RZG-AUTH: z4gYkBuibEUndJ36PWMnarO+BInc Received: from tigra.home (Fab5c.f.strato-dslnet.de [195.4.171.92]) by post.webmailer.de (fruni mo40) (RZmta 16.34) with ESMTP id L00492k4CDjlIo ; Mon, 12 May 2008 19:58:48 +0200 (MEST) (envelope-from: ) Received: from steel.home (steel.home [192.168.1.2]) by tigra.home (Postfix) with ESMTP id 8CCC2277BD; Mon, 12 May 2008 19:58:48 +0200 (CEST) Received: by steel.home (Postfix, from userid 1000) id A11F656D28; Mon, 12 May 2008 19:58:48 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20080512175829.GE3128@steel.home> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Alex Riesen --- t/t3700-add.sh | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/t/t3700-add.sh b/t/t3700-add.sh index 287e058..ca3e33d 100755 --- a/t/t3700-add.sh +++ b/t/t3700-add.sh @@ -179,4 +179,13 @@ test_expect_success 'git add --refresh' ' test -z "`git diff-index HEAD -- foo`" ' +test_expect_success 'git add --ignore-errors' ' + git reset --hard && + date >foo1 && + date >foo2 && + chmod 0 foo2 && + git add --verbose --ignore-errors . + git ls-files |grep foo1 +' + test_done -- 1.5.5.1.184.g5bee