X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=commit.c;h=3f2235ecf87b63bc5d16342ebcf7f8faf098530a;hb=d6db01075b65da2b8584a0450619390893aae103;hp=e83056406f54495fe8a1090a816c425375858d4d;hpb=961784ee422c22075e131292b2235782e378c612;p=git.git diff --git a/commit.c b/commit.c index e8305640..3f2235ec 100644 --- a/commit.c +++ b/commit.c @@ -37,6 +37,8 @@ struct commit *lookup_commit(unsigned char *sha1) ret->object.type = commit_type; return ret; } + if (!obj->type) + obj->type = commit_type; return check_commit(obj, sha1); }