use parse_commit_or_die instead of segfaulting
commit683ff884cce955cc331929d857fac9d6bd69f46a
authorJeff King <peff@peff.net>
Thu, 24 Oct 2013 08:53:46 +0000 (24 04:53 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Oct 2013 22:43:50 +0000 (24 15:43 -0700)
treee2008ae24bd2672c58d9d1410e95552d6f74e05b
parent5e7d4d3e932432131d0f8f4195e0061ecf644865
use parse_commit_or_die instead of segfaulting

Some unchecked calls to parse_commit should obviously die on
error, because their next step is to start looking at the
parsed fields, which will cause a segfault. These are
obvious candidates for parse_commit_or_die, which will be a
strict improvement in behavior.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
builtin/fast-export.c