completion: use __gitcomp_builtin in _git_name_rev
[gitweb.git] / http-backend.c
index e51c7805c805ac6c1234665f5f90fcdd51d39231..f3dc218b2a3d2662efda56fb6c8878a37a4e67a4 100644 (file)
@@ -486,10 +486,9 @@ static int show_head_ref(const char *refname, const struct object_id *oid,
        struct strbuf *buf = cb_data;
 
        if (flag & REF_ISSYMREF) {
-               struct object_id unused;
                const char *target = resolve_ref_unsafe(refname,
                                                        RESOLVE_REF_READING,
-                                                       unused.hash, NULL);
+                                                       NULL, NULL);
 
                if (target)
                        strbuf_addf(buf, "ref: %s\n", strip_namespace(target));