Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Reduce the number of connects when fetching
[gitweb.git]
/
builtin-ls-remote.c
diff --git
a/builtin-ls-remote.c
b/builtin-ls-remote.c
index 6dd31d1dd6c14677f91e8a0a941fb0f873b4c1fc..023754986e347a9529d6295d600f665f32f14577 100644
(file)
--- 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;