shallow: rewrite functions to take object_id arguments
[gitweb.git] / http-backend.c
index a2d388de96cf727262aa455f719761780e098728..55353ad66a27532844c6cc4d63aaa8b0d4c89c7d 100644 (file)
@@ -408,10 +408,10 @@ static int show_head_ref(const char *refname, const struct object_id *oid,
        struct strbuf *buf = cb_data;
 
        if (flag & REF_ISSYMREF) {
-               unsigned char unused[20];
+               struct object_id unused;
                const char *target = resolve_ref_unsafe(refname,
                                                        RESOLVE_REF_READING,
-                                                       unused, NULL);
+                                                       unused.hash, NULL);
                const char *target_nons = strip_namespace(target);
 
                strbuf_addf(buf, "ref: %s\n", target_nons);