From 6217367859e92aa0bd67f02162d1f53e290e15e8 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sun, 2 Mar 2008 05:31:59 +0000 Subject: [PATCH] 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 --- builtin-remote.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.45.2