diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2008-03-02 05:31:59 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-02 15:33:55 -0800 |
commit | 6217367859e92aa0bd67f02162d1f53e290e15e8 (patch) | |
tree | 8d67588ffafcf2a2ca2c6ca78e54460938b98a43 | |
parent | 4ebc914c880cf724222a6e5097a21a85ed8e5951 (diff) | |
download | git-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.c | 1 |
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); |