Re: [PATCH 01/23] parse_commit_buffer(): treat lookup_commit() failure as parse error
- From
Jeff King <peff@peff.net>
- Date
- Oct 24, 2019, 18:01 UTC
- Message-ID
- <20191024180110.GB12892@sigill.intra.peff.net>
- In-Reply-To
- <xmqq1rv2hkzn.fsf@gitster-ct.c.googlers.com>
On Thu, Oct 24, 2019 at 12:37:32PM +0900, Junio C Hamano wrote:
Show 19 quoted lines
> Jeff King <peff@peff.net> writes: > > > ... > > The "seen" variant for this test mistakenly parsed another commit > > instead of the blob, meaning that we were actually just testing the > > "lone" case again. Changing that reveals the breakage (and shows that > > this fixes it). > > ... > > @@ -52,7 +52,7 @@ test_expect_success 'traverse unexpected non-commit parent (lone)' ' > > ' > > > > test_expect_success 'traverse unexpected non-commit parent (seen)' ' > > - test_must_fail git rev-list --objects $commit $broken_commit \ > > + test_must_fail git rev-list --objects $blob $broken_commit \ > > >output 2>&1 && > > test_i18ngrep "not a commit" output > > ' > > Yikes. Thanks for spotting.
By the way, I shuffled this one to the front so that it could be taken separately for "maint" if you want (but it has been this way for at least a decade, so I don't think it's urgent for v2.24).
-Peff