summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorLibravatar Ilari Liusvaara <ilari.liusvaara@elisanet.fi>2009-12-09 17:26:34 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-12-28 00:24:15 -0800
commit28ca0c90080ec933d82b0f7d050ea5fde2816c57 (patch)
tree654099f9c9435eb6022247ee6e9c29d4ad03b0b3 /transport.c
parentSupport remote archive from all smart transports (diff)
downloadtgif-28ca0c90080ec933d82b0f7d050ea5fde2816c57.tar.xz
Remove special casing of http, https and ftp
HTTP, HTTPS and FTP are no longer special to transport code. Also add support for FTPS (curl supports it so it is easy). Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/transport.c b/transport.c
index a7d67eba83..652bf0bd83 100644
--- a/transport.c
+++ b/transport.c
@@ -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);