* [PATCH] remote show: Clean up connection correctly if object fetch wasn't done
@ 2008-03-02 5:31 Johannes Schindelin
0 siblings, 0 replies; only message in thread
From: Johannes Schindelin @ 2008-03-02 5:31 UTC (permalink / raw)
To: git, gitster
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(-)
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-02 5:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-02 5:31 [PATCH] remote show: Clean up connection correctly if object fetch wasn't done Johannes Schindelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox