aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2008-03-02 05:31:59 +0000
committerJunio C Hamano <gitster@pobox.com>2008-03-02 15:33:55 -0800
commit6217367859e92aa0bd67f02162d1f53e290e15e8 (patch)
tree8d67588ffafcf2a2ca2c6ca78e54460938b98a43
parent4ebc914c880cf724222a6e5097a21a85ed8e5951 (diff)
downloadgit-6217367859e92aa0bd67f02162d1f53e290e15e8.tar.gz
git-6217367859e92aa0bd67f02162d1f53e290e15e8.tar.xz
remote show: Clean up connection correctly if object fetch wasn't done
Like in ls-remote, we have to disconnect the transport after getting the remote refs. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin-remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-remote.c b/builtin-remote.c
index d0c07c7a0..98ff1b727 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);