From: Dmitry Potapov Date: Mon, 14 Jan 2008 06:40:36 GMT Subject: Re: [PATCH] Don't display crlf warning twice Message-ID: <20080114064036.GX2963@dpotapov.dyndns.org> In-Reply-To: On Mon, Jan 14, 2008 at 07:17:26AM +0100, Steffen Prohaska wrote: > > Your traces reveal that it is a racy condition that can trigger > the double warnings. It is not a racy condition. It is just another branch in the code, which happens when an existing file is modified. Your tests always added a new file, so they could not reproduce the problem. > > Do you have a test case that reliably triggers the second call to > convert_to_git()? =========================================== git config core.autocrlf input echo Hello > foo git add foo git commit -m 'add foo' echo Hello >> foo unix2dos foo # This should trigger double crlf warning git add foo =========================================== Dmitry