reflog_expire: convert to struct object_id
[gitweb.git] / transport.c
index c83f3b71bebffee19daa88cfba76aa8d16938b2f..9bfcf870f9078f75349bd3b4976c71bbf5c49ebf 100644 (file)
@@ -87,7 +87,7 @@ static struct ref *get_refs_from_bundle(struct transport *transport, int for_pus
        for (i = 0; i < data->header.references.nr; i++) {
                struct ref_list_entry *e = data->header.references.list + i;
                struct ref *ref = alloc_ref(e->name);
-               hashcpy(ref->old_oid.hash, e->sha1);
+               oidcpy(&ref->old_oid, &e->oid);
                ref->next = result;
                result = ref;
        }
@@ -1031,7 +1031,9 @@ int transport_push(struct transport *transport,
                                                          &ref->new_oid);
 
                        if (!push_unpushed_submodules(&commits,
-                                                     transport->remote->name,
+                                                     transport->remote,
+                                                     refspec, refspec_nr,
+                                                     transport->push_options,
                                                      pretend)) {
                                oid_array_clear(&commits);
                                die("Failed to push all needed submodules!");