diff options
Diffstat (limited to 'remote-curl.c')
-rw-r--r-- | remote-curl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/remote-curl.c b/remote-curl.c index c0b98ccdf7..7b19ebb0f8 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -102,7 +102,8 @@ static struct discovery* discover_refs(const char *service) free_discovery(last); strbuf_addf(&buffer, "%sinfo/refs", url); - if (!prefixcmp(url, "http://") || !prefixcmp(url, "https://")) { + if ((!prefixcmp(url, "http://") || !prefixcmp(url, "https://")) && + git_env_bool("GIT_SMART_HTTP", 1)) { maybe_smart = 1; if (!strchr(url, '?')) strbuf_addch(&buffer, '?'); |