object: allow object_as_type to handle arbitrary repositories
[gitweb.git] / line-log.c
index fa9cfd5bdbb5dfe4a1ca5c7f7711435caf091805..7fa0f16eba6bbb851be38dd266d597cf450a0275 100644 (file)
@@ -479,7 +479,7 @@ static struct commit *check_single_commit(struct rev_info *revs)
                struct object *obj = revs->pending.objects[i].item;
                if (obj->flags & UNINTERESTING)
                        continue;
-               obj = deref_tag(obj, NULL, 0);
+               obj = deref_tag(the_repository, obj, NULL, 0);
                if (obj->type != OBJ_COMMIT)
                        die("Non commit %s?", revs->pending.objects[i].name);
                if (commit)