summaryrefslogtreecommitdiff
path: root/builtin-ls-remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin-ls-remote.c')
-rw-r--r--builtin-ls-remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-ls-remote.c b/builtin-ls-remote.c
index 6dd31d1dd6..023754986e 100644
--- a/builtin-ls-remote.c
+++ b/builtin-ls-remote.c
@@ -94,6 +94,7 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
transport_set_option(transport, TRANS_OPT_UPLOADPACK, uploadpack);
ref = transport_get_remote_refs(transport);
+ transport_disconnect(transport);
if (!ref)
return 1;