Re: [PATCH 10/48] t6036: tests for criss-cross merges with various directory/file conflicts
- From
Elijah Newren <newren@gmail.com>
- Date
- Aug 8, 2011, 19:07 UTC
- Message-ID
- <CABPp-BGbwhDJF2=9gPWP08auk16qckho3db8eOes9JjTN0QdCw@mail.gmail.com>
- In-Reply-To
- <7v39i3b1jg.fsf@alter.siamese.dyndns.org>
On Mon, Jul 18, 2011 at 5:40 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
>> +test_expect_failure 'git detects conflict and handles merge of D & E1 correctly' ' >> + git reset --hard && >> + git reset --hard && >> + git clean -fdqx && >> + git checkout D^0 && > > Why do you need to reset twice? Superstition (you have a commented one > introduced later in the series --- perhaps this shows a bug in reset)?
I could have sworn that when I first created these tests last September that the double reset was needed to get back to a clean state. I can't seem to duplicate the issue now, though I do see some "error" messages printed on the first reset despite the reset working successfully. I'll drop the extra one. *shrug*
[I'm not ignoring the many other good comments you made on this patch; they just got incorporated into code and comment changes for the next version of the series I send out.]