refs: convert update_ref and refs_update_ref to use struct object_id
[gitweb.git] / transport-helper.c
index c948d5215c22fbbb3e174e219017935741e9b2d5..f1836012615e8ea6ff3e80705b3587dcc5c59e84 100644 (file)
@@ -795,7 +795,8 @@ static int push_update_refs_status(struct helper_data *data,
                private = apply_refspecs(data->refspecs, data->refspec_nr, ref->name);
                if (!private)
                        continue;
-               update_ref("update by helper", private, ref->new_oid.hash, NULL, 0, 0);
+               update_ref("update by helper", private, &ref->new_oid, NULL,
+                          0, 0);
                free(private);
        }
        strbuf_release(&buf);