submodule: use prepare_submodule_repo_env consistently
[gitweb.git] / transport.c
index c92f8ae7054e3340cf1a40c3f74c70b7aab7303a..e20bb771faaa56aa876f14f73123e14a71731a1b 100644 (file)
@@ -163,6 +163,12 @@ static int connect_setup(struct transport *transport, int for_push)
        if (data->conn)
                return 0;
 
+       switch (transport->family) {
+       case TRANSPORT_FAMILY_ALL: break;
+       case TRANSPORT_FAMILY_IPV4: flags |= CONNECT_IPV4; break;
+       case TRANSPORT_FAMILY_IPV6: flags |= CONNECT_IPV6; break;
+       }
+
        data->conn = git_connect(data->fd, transport->url,
                                 for_push ? data->options.receivepack :
                                 data->options.uploadpack,