X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=commit.c;h=c6fdfd49197df99cdabf761e8e307f781a45086d;hb=c35dfe858991ee1969870d2da9337a1da567157e;hp=c0dd689ea3be3ef8d161cac056350e61851e7f64;hpb=d32987be618181db1f435a5c0a1bea85e90c7c7d;p=git.git diff --git a/commit.c b/commit.c index c0dd689e..c6fdfd49 100644 --- a/commit.c +++ b/commit.c @@ -15,7 +15,7 @@ struct commit *lookup_commit(unsigned char *sha1) ret->object.type = commit_type; return ret; } - if (obj->parsed && obj->type != commit_type) { + if (obj->type != commit_type) { error("Object %s is a %s, not a commit", sha1_to_hex(sha1), obj->type); return NULL;