for-each-ref: cope with tags with incomplete lines
commite276c26b4b65711c27e3ef37e732d41eeae42094
authorJunio C Hamano <gitster@pobox.com>
Wed, 20 Aug 2008 19:29:27 +0000 (20 12:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Aug 2008 20:29:30 +0000 (20 13:29 -0700)
treeccb0991f57fa881ed80e0c0093844d348b8825bd
parentc35539eb10b0ab2a180e523f03ff65dc061bd47e
for-each-ref: cope with tags with incomplete lines

If you have a tag with a single, incomplete line as its payload, asking
git-for-each-ref for its %(body) element accessed a NULL pointer.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-for-each-ref.c
t/t6300-for-each-ref.sh