diff options
-rw-r--r-- | rev-list.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rev-list.c b/rev-list.c index ce5b8b2ad5..2ed5e87e12 100644 --- a/rev-list.c +++ b/rev-list.c @@ -418,6 +418,8 @@ static struct commit *get_commit_reference(const char *name, unsigned int flags) if (tag_objects && !(object->flags & UNINTERESTING)) add_pending_object(object, tag->tag); object = parse_object(tag->tagged->sha1); + if (!object) + die("bad object %s", sha1_to_hex(tag->tagged->sha1)); } /* |