Signed-off-by: Martin Koegler <mkoegler@xxxxxxxxxxxxxxxxx> --- tag.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/tag.c b/tag.c index 38bf913..990134f 100644 --- a/tag.c +++ b/tag.c @@ -9,7 +9,10 @@ const char *tag_type = "tag"; struct object *deref_tag(struct object *o, const char *warn, int warnlen) { while (o && o->type == OBJ_TAG) - o = parse_object(((struct tag *)o)->tagged->sha1); + if (((struct tag *)o)->tagged) + o = parse_object(((struct tag *)o)->tagged->sha1); + else + o = NULL; if (!o && warn) { if (!warnlen) warnlen = strlen(warn); -- 1.5.4.1.gaf0ae - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html