]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
ref-filter: die on parse_commit errors
authorJeff King <peff@peff.net>
Thu, 9 Mar 2017 13:29:04 +0000 (08:29 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Mar 2017 19:51:30 +0000 (11:51 -0800)
commitd344d1cb8a1d1bea268ec78f5d7315381a0a6c96
tree5a96072bb00c6580ee579141cdac003129d4870c
parenta0262c51d0f36678a8c6143a9c73d2058fd6ad57
ref-filter: die on parse_commit errors

The tag-contains algorithm quietly returns "does not
contain" when parse_commit() fails. But a parse failure is
an indication that the repository is corrupt. We should die
loudly rather than producing a bogus result.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c