builtin/reset: add --recurse-submodules switch
[gitweb.git] / ref-filter.c
index 71b72e04e804995cd385608e8d4f7331cedd91b3..1e392730057ce97dab8be4b05dfa7c610e10fdce 100644 (file)
@@ -1298,9 +1298,9 @@ static void populate_value(struct ref_array_item *ref)
        ref->value = xcalloc(used_atom_cnt, sizeof(struct atom_value));
 
        if (need_symref && (ref->flag & REF_ISSYMREF) && !ref->symref) {
-               unsigned char unused1[20];
+               struct object_id unused1;
                ref->symref = resolve_refdup(ref->refname, RESOLVE_REF_READING,
-                                            unused1, NULL);
+                                            unused1.hash, NULL);
                if (!ref->symref)
                        ref->symref = "";
        }