Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
filter-branch: use $SHELL_PATH instead of 'sh'
[gitweb.git]
/
builtin-ls-remote.c
diff --git
a/builtin-ls-remote.c
b/builtin-ls-remote.c
index 720280e3900dc65a5063306a55880b8bc1330c2a..8907a89d6c3914f4652ef387776f581015778396 100644
(file)
--- a/
builtin-ls-remote.c
+++ b/
builtin-ls-remote.c
@@
-94,6
+94,8
@@
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);
+ if (transport_disconnect(transport))
+ return 1;
for ( ; ref; ref = ref->next) {
if (!check_ref_type(ref, flags))
continue;