Like in ls-remote, we have to disconnect the transport after getting
the remote refs.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport = transport_get(NULL, states.remote->url_nr > 0 ?
states.remote->url[0] : NULL);
ref = transport_get_remote_refs(transport);
transport = transport_get(NULL, states.remote->url_nr > 0 ?
states.remote->url[0] : NULL);
ref = transport_get_remote_refs(transport);
+ transport_disconnect(transport);
read_branches();
got_states = get_ref_states(ref, &states);
read_branches();
got_states = get_ref_states(ref, &states);