summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorIlari Liusvaara <ilari.liusvaara@elisanet.fi>2009-12-09 15:26:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-12-28 08:24:15 (GMT)
commit28ca0c90080ec933d82b0f7d050ea5fde2816c57 (patch)
tree654099f9c9435eb6022247ee6e9c29d4ad03b0b3 /transport.c
parentb236752a8722c77b5a9b4ed488a992ee05252843 (diff)
downloadgit-28ca0c90080ec933d82b0f7d050ea5fde2816c57.zip
git-28ca0c90080ec933d82b0f7d050ea5fde2816c57.tar.gz
git-28ca0c90080ec933d82b0f7d050ea5fde2816c57.tar.bz2
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 a7d67eb..652bf0b 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);