Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-09-20 00:35:24 +0300
committerJunio C Hamano <gitster@pobox.com>2022-09-20 00:35:24 +0300
commit298a9582249255fe00660a78dba0bb0ef0e1dbe8 (patch)
treeb8abd825bb52a214a901553078b17634147ac826 /transport.c
parentf876b5a6868faa69a3d12aa59d65c5af37a91ff3 (diff)
parentc54980ab83661e8e290003fbd5ab44b12e4e77b1 (diff)
Merge branch 'jk/list-objects-filter-cleanup'
A couple of bugfixes with code clean-up. * jk/list-objects-filter-cleanup: list-objects-filter: convert filter_spec to a strbuf list-objects-filter: add and use initializers list-objects-filter: handle null default filter spec list-objects-filter: don't memset after releasing filter struct
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/transport.c b/transport.c
index 1687ad7e2c..f78e29058f 100644
--- a/transport.c
+++ b/transport.c
@@ -1113,6 +1113,7 @@ struct transport *transport_get(struct remote *remote, const char *url)
* will be checked individually in git_connect.
*/
struct git_transport_data *data = xcalloc(1, sizeof(*data));
+ list_objects_filter_init(&data->options.filter_options);
ret->data = data;
ret->vtable = &builtin_smart_vtable;
ret->smart_options = &(data->options);