Work around curl-gnutls not liking to be reinitialized
authorMike Hommey <mh@glandium.org>
Sat, 9 Feb 2008 09:41:36 +0000 (10:41 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 10 Feb 2008 07:41:42 +0000 (23:41 -0800)
commit9fd9279bf60e1c31149000ae309a28d85d2a88e1
tree35f2e8debee0c0889bccdce90e0e24ecd9c5c0f5
parent2b84b5a874d3281d15aa0b73426b13597cd02520
Work around curl-gnutls not liking to be reinitialized

curl versions 7.16.3 to 7.18.0 included had a regression in which https
requests following curl_global_cleanup/init sequence would fail with ASN1
parser errors with curl-gnutls. Such sequences happen in some cases such
as git fetch.

We work around this by removing the http_init and http_cleanup calls from
get_refs_via_curl, replacing them with a transport->data initialization
with the http_walker (which does http_init).

While the http_walker is not currently used in get_refs_via_curl, http
and walker code refactor will make it use it.

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c