threads / patch / 12418

patchremote show: Clean up connection correctly if object fetch wasn't done

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

## tl;dr

One message between Mar 2, 2008 and Mar 2, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Johannes Schindelin· Mar 2, 2008, 05:31 UTC · lore

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

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
	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(-)
Show changes to builtin-remote.c +1 −0
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

← back to recent threads