aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/ls-remote.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2024-10-15 16:56:43 -0400
committerTaylor Blau <me@ttaylorr.com>2024-10-15 16:56:43 -0400
commitfd98f659fda5a7704b10033f2b2efdae2b0a58e6 (patch)
treec917e68cfe31b741e4aad16922ce7d5466f36dc4 /builtin/ls-remote.c
parentMerge branch 'js/doc-platform-support-link-fix' (diff)
parentls-remote: leakfix for not clearing server_options (diff)
downloadgit-fd98f659fda5a7704b10033f2b2efdae2b0a58e6.tar.gz
git-fd98f659fda5a7704b10033f2b2efdae2b0a58e6.zip
Merge branch 'xx/remote-server-option-config'
A new configuration variable remote.<name>.serverOption makes the transport layer act as if the --serverOption=<value> option is given from the command line. * xx/remote-server-option-config: ls-remote: leakfix for not clearing server_options fetch: respect --server-option when fetching multiple remotes transport.c::handshake: make use of server options from remote remote: introduce remote.<name>.serverOption configuration transport: introduce parse_transport_option() method
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 f723b3bf3b..423318f87e 100644
--- a/builtin/ls-remote.c
+++ b/builtin/ls-remote.c
@@ -173,5 +173,6 @@ int cmd_ls_remote(int argc,
transport_ls_refs_options_release(&transport_options);
strvec_clear(&pattern);
+ string_list_clear(&server_options, 0);
return status;
}