diff options
author | Brandon Williams <bmwill@google.com> | 2016-12-14 14:39:51 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-15 09:28:37 -0800 |
commit | f962ddf6edb199b2611d575a75f60d20d5c137c3 (patch) | |
tree | 81b5da0a0ff9d250afc9c26eef239a48e6cd0ff9 /transport.h | |
parent | 85e42053658cf6710b84974be0ef0acf459a80d9 (diff) | |
download | git-f962ddf6edb199b2611d575a75f60d20d5c137c3.tar.gz |
http: always warn if libcurl version is too old
Always warn if libcurl version is too old because:
1. Even without a protocol whitelist, newer versions of curl have all
non-standard protocols disabled by default.
2. A future patch will introduce default "known-good" and "known-bad"
protocols which are allowed/disallowed by 'is_transport_allowed'
which older version of libcurl can't respect.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.h')
-rw-r--r-- | transport.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/transport.h b/transport.h index c68140892c..3396e1d434 100644 --- a/transport.h +++ b/transport.h @@ -153,12 +153,6 @@ int is_transport_allowed(const char *type); */ void transport_check_allowed(const char *type); -/* - * Returns true if the user has attempted to turn on protocol - * restrictions at all. - */ -int transport_restrict_protocols(void); - /* Transport options which apply to git:// and scp-style URLs */ /* The program to use on the remote side to send a pack */ |