]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-clone.c
ui-shared: restrict to 15 levels
[cgit.git] / ui-clone.c
index 6ba8f361e6ae63bf13de716a16957c3bbe73f58a..5dccb639761a57f8e3176c52029ab5a5e57194dc 100644 (file)
@@ -19,12 +19,12 @@ static int print_ref_info(const char *refname, const struct object_id *oid,
 {
        struct object *obj;
 
-       if (!(obj = parse_object(oid)))
+       if (!(obj = parse_object(the_repository, oid)))
                return 0;
 
        htmlf("%s\t%s\n", oid_to_hex(oid), refname);
        if (obj->type == OBJ_TAG) {
-               if (!(obj = deref_tag(obj, refname, 0)))
+               if (!(obj = deref_tag(the_repository, obj, refname, 0)))
                        return 0;
                htmlf("%s\t%s^{}\n", oid_to_hex(&obj->oid), refname);
        }