{"thread":{"id":"12418","subject":"[PATCH] remote show: Clean up connection correctly if object fetch wasn't done","startedAt":"2008-03-02T05:31:59Z","lastAt":"2008-03-02T05:31:59Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"70580","messageId":"alpine.LSU.1.00.0803020531310.22527@racer.site","threadId":"12418","inReplyTo":null,"subject":"[PATCH] remote show: Clean up connection correctly if object fetch wasn't done","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-03-02T05:31:59Z","receivedAt":"2008-03-02T05:31:59Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nLike in ls-remote, we have to disconnect the transport after getting\nthe remote refs.\n\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n---\n\n\tI did not make the connection when commenting on ls-remote, that\n\tbuiltin-remote uses the same API...\n\n builtin-remote.c |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/builtin-remote.c b/builtin-remote.c\nindex 2ad1a8d..2405c2c 100644\n--- a/builtin-remote.c\n+++ b/builtin-remote.c\n@@ -387,6 +387,7 @@ static int show_or_prune(int argc, const char **argv, int prune)\n \t\ttransport = transport_get(NULL, states.remote->url_nr > 0 ?\n \t\t\tstates.remote->url[0] : NULL);\n \t\tref = transport_get_remote_refs(transport);\n+\t\ttransport_disconnect(transport);\n \n \t\tread_branches();\n \t\tgot_states = get_ref_states(ref, &states);\n-- \n1.5.4.3.446.gbe8932\n\n"}]}