summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtin-remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-remote.c b/builtin-remote.c
index d0c07c7a0b..98ff1b727e 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);