refs: convert peel_ref to struct object_id
[gitweb.git] / submodule.c
index 63e7094e1620c2c3eb7dda0a8c38a833ae2d1c5a..3b7be4cafea323b1a29b6100e21661900634a121 100644 (file)
@@ -1016,7 +1016,7 @@ int push_unpushed_submodules(struct oid_array *commits,
                char *head;
                struct object_id head_oid;
 
-               head = resolve_refdup("HEAD", 0, head_oid.hash, NULL);
+               head = resolve_refdup("HEAD", 0, &head_oid, NULL);
                if (!head)
                        die(_("Failed to resolve HEAD as a valid ref."));