Code

parse_commit: don't fail, if object is NULL
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>
Mon, 18 Feb 2008 20:48:02 +0000 (21:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Feb 2008 03:25:26 +0000 (19:25 -0800)
commit9786f68bfcc082778aee74159540e341bb239514
treed2a1d81c7d446a8199ca07d08fce9963270375f6
parent9684afd967f61047bbf1b3a8039adf7d41916b31
parse_commit: don't fail, if object is NULL

Some codepaths (eg. builtin-rev-parse -> get_merge_bases -> parse_commit)
can pass NULL.

Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c