summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2009-09-04 02:13:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-09-04 04:27:36 (GMT)
commitc9e388bb48bdafdf19574add915ab0ce33a1907d (patch)
tree3b10f2c574135edf933e4fa5b80a9b08b8b6b7aa /transport.c
parentad17f01399a9220b78678b322bd42b0a29898e01 (diff)
downloadgit-c9e388bb48bdafdf19574add915ab0ce33a1907d.zip
git-c9e388bb48bdafdf19574add915ab0ce33a1907d.tar.gz
git-c9e388bb48bdafdf19574add915ab0ce33a1907d.tar.bz2
Make the "traditionally-supported" URLs a special case
Instead of trying to make http://, https://, and ftp:// URLs indicative of some sort of pattern of transport helper usage, make them a special case which runs the "curl" helper, and leave the mechanism by which arbitrary helpers will be chosen entirely to future work. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport.c b/transport.c
index 9935c85..b654d71 100644
--- a/transport.c
+++ b/transport.c
@@ -818,7 +818,7 @@ struct transport *transport_get(struct remote *remote, const char *url)
} else if (!prefixcmp(url, "http://")
|| !prefixcmp(url, "https://")
|| !prefixcmp(url, "ftp://")) {
- transport_helper_init(ret);
+ transport_helper_init(ret, "curl");
#ifdef NO_CURL
error("git was compiled without libcurl support.");
#else