DORMANTno replies

[PATCH] remote show: Clean up connection correctly if object fetch wasn't done

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:19
Subsystem: the rest · Maintainer: Linus Torvalds

Like in ls-remote, we have to disconnect the transport after getting
the remote refs.

Signed-off-by: Johannes Schindelin <redacted>
---

	I did not make the connection when commenting on ls-remote, that
	builtin-remote uses the same API...

 builtin-remote.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/builtin-remote.c b/builtin-remote.c
index 2ad1a8d..2405c2c 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);
-- 
1.5.4.3.446.gbe8932
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help