Re: parse_object does check_sha1_signature but not parse_object_buffer?
- From
Mike Hommey <mh@glandium.org>
- Date
- Feb 2, 2016, 04:36 UTC
- Message-ID
- <20160202043628.GA10253@glandium.org>
- In-Reply-To
- <xmqq60y7u7sj.fsf@gitster.mtv.corp.google.com>
On Mon, Feb 01, 2016 at 07:10:04PM -0800, Junio C Hamano wrote:
Show 8 quoted lines
> Mike Hommey <mh@glandium.org> writes: > > > Shouldn't parse_object_buffer also do check_sha1_signature? > > In general, it shouldn't; its callers are supposed to do it as > additional check when/if needed. Callers like the one in fsck.c > does not want to die after seeing one bad one. We want to report > and keep checking other things.
Shouldn't some things like, at least, `git checkout`, still check the sha1s, though?
Mike