push: propagate remote and refspec with --recurse-submodules
[gitweb.git] / transport.c
index 64e60b6353903f60dfe64f7730cce3aac2611f13..a62e5118c0575e50b93e9b659287e215369b22f9 100644 (file)
@@ -1030,7 +1030,8 @@ int transport_push(struct transport *transport,
                                        sha1_array_append(&commits, ref->new_oid.hash);
 
                        if (!push_unpushed_submodules(&commits,
-                                                     transport->remote->name,
+                                                     transport->remote,
+                                                     refspec, refspec_nr,
                                                      transport->push_options,
                                                      pretend)) {
                                sha1_array_clear(&commits);