@matheusbsbs / matheus-bagliano / commits / 6217367859
Fork 0

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>

Johannes Schindelin committed Mar 2, 2008 at 05:31 UTC 6217367859e92aa0bd67f02162d1f53e290e15e8
1 file changed +1
builtin-remote.c
+1
@@ -387,6 +387,7 @@ static int show_or_prune(int argc, const char **argv, int prune)
387 transport = transport_get(NULL, states.remote->url_nr > 0 ?
388 states.remote->url[0] : NULL);
389 ref = transport_get_remote_refs(transport);
390 + transport_disconnect(transport);
391
392 read_branches();
393 got_states = get_ref_states(ref, &states);