process_tag: handle tag->tagged == NULL
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
172947e645
commit
cc36934791
@ -79,6 +79,7 @@ static void process_tag(struct tag *tag, struct object_array *p, const char *nam
|
|||||||
|
|
||||||
if (parse_tag(tag) < 0)
|
if (parse_tag(tag) < 0)
|
||||||
die("bad tag object %s", sha1_to_hex(obj->sha1));
|
die("bad tag object %s", sha1_to_hex(obj->sha1));
|
||||||
|
if (tag->tagged)
|
||||||
add_object(tag->tagged, p, NULL, name);
|
add_object(tag->tagged, p, NULL, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user