use parse_commit_or_die instead of custom message
commit367068e0dd1b7d6b5b4029749b326c6bad172498
authorJeff King <peff@peff.net>
Thu, 24 Oct 2013 08:54:01 +0000 (24 04:54 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Oct 2013 22:43:51 +0000 (24 15:43 -0700)
treee3387b0afa554b0547719b1b8d1d26f0cd821d61
parent683ff884cce955cc331929d857fac9d6bd69f46a
use parse_commit_or_die instead of custom message

Many calls to parse_commit detect errors and die. In some
cases, the custom error messages are more useful than what
parse_commit_or_die could produce, because they give some
context, like which ref the commit came from. Some, however,
just say "invalid commit". Let's convert the latter to use
parse_commit_or_die; its message is slightly more informative,
and it makes the error more consistent throughout git.

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