Re: [PATCH 01/23] parse_commit_buffer(): treat lookup_commit() failure as parse error
Jeff King <peff@peff.net> writes:
Show 15 quoted lines
> ...
> 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.