Re: [PATCH] fetch-pack: make unexpected peek result non-fatal
Junio C Hamano <gitster@pobox.com> writes:
Show 8 quoted lines
> We used to die unless READ_NORMAL was returned, so the code after
> packet_reader_peek() can rely on reader->line to be populated. Now
> that code must handle cases where an earlier _peek() gave something
> other than READ_NORMAL and in such an error case reader->line points
> at NULL. So any code that assumed reader->line was populated needs
> to be updated.
>
> Makes sense.
Thanks for taking a look. Yes, that's correct.