From: Johannes Schindelin Date: Sun, 2 Mar 2008 05:31:59 +0000 (+0000) Subject: remote show: Clean up connection correctly if object fetch wasn't done X-Git-Tag: v1.5.5-rc0~24^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6217367859e92aa0bd67f02162d1f53e290e15e8;p=git.git remote show: Clean up connection correctly if object fetch wasn't done Like in ls-remote, we have to disconnect the transport after getting the remote refs. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/builtin-remote.c b/builtin-remote.c index d0c07c7a0..98ff1b727 100644 --- a/builtin-remote.c +++ b/builtin-remote.c @@ -387,6 +387,7 @@ static int show_or_prune(int argc, const char **argv, int prune) 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);