tag: allow lookup_tag to handle arbitrary repositories
[gitweb.git] / http-push.c
index f7b70c4efb11b834dc1960a8ccbcb6ae9dae8aa3..5eaf551b51e7aaf87219d4af0ca19873484c90ca 100644 (file)
@@ -1477,7 +1477,7 @@ static void add_remote_info_ref(struct remote_ls_ctx *ls)
                    oid_to_hex(&ref->old_oid), ls->dentry_name);
 
        if (o->type == OBJ_TAG) {
-               o = deref_tag(o, ls->dentry_name, 0);
+               o = deref_tag(the_repository, o, ls->dentry_name, 0);
                if (o)
                        strbuf_addf(buf, "%s\t%s^{}\n",
                                    oid_to_hex(&o->oid), ls->dentry_name);