Windows: boost startup by avoiding a static dependency on shell32.dll
[gitweb.git] / transport.c
index a7d67eba83b36fb4f3fec7667c3125fd764ccf74..b5332c018b2951f63b15f51a3e3fb00999532a96 100644 (file)
@@ -875,6 +875,9 @@ struct transport *transport_get(struct remote *remote, const char *url)
                url = remote->url[0];
        ret->url = url;
 
+       /* In case previous URL had helper forced, reset it. */
+       remote->foreign_vcs = NULL;
+
        /* maybe it is a foreign URL? */
        if (url) {
                const char *p = url;
@@ -918,14 +921,6 @@ struct transport *transport_get(struct remote *remote, const char *url)
 
                data->conn = NULL;
                data->got_remote_heads = 0;
-       } else if (!prefixcmp(url, "http://")
-               || !prefixcmp(url, "https://")
-               || !prefixcmp(url, "ftp://")) {
-               /* These three are just plain special. */
-               transport_helper_init(ret, "curl");
-#ifdef NO_CURL
-               error("git was compiled without libcurl support.");
-#endif
        } else {
                /* Unknown protocol in URL. Pass to external handler. */
                int len = external_specification_len(url);