Remove special casing of http, https and ftp
[gitweb.git] / transport.c
index a7d67eba83b36fb4f3fec7667c3125fd764ccf74..652bf0bd8394056d3de558d0eb1635e02fc9f329 100644 (file)
@@ -918,14 +918,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);