Merge branch 'lt/unitype' into js/c-merge-recursive
* lt/unitype: builtin-prune.c: forgot TYPE => OBJ changes. Remove TYPE_* constant macros and use object_type enums consistently.
This commit is contained in:
@ -1501,7 +1501,7 @@ static struct commit *get_ref(const char *ref)
|
||||
if (get_sha1(ref, sha1))
|
||||
die("Could not resolve ref '%s'", ref);
|
||||
object = deref_tag(parse_object(sha1), ref, strlen(ref));
|
||||
if (object->type != TYPE_COMMIT)
|
||||
if (object->type != OBJ_COMMIT)
|
||||
return NULL;
|
||||
if (parse_commit((struct commit *)object))
|
||||
die("Could not parse commit '%s'", sha1_to_hex(object->sha1));
|
||||
|
Reference in New Issue
Block a user