diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-09-19 14:35:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-09-19 14:35:24 -0700 |
commit | 298a9582249255fe00660a78dba0bb0ef0e1dbe8 (patch) | |
tree | b8abd825bb52a214a901553078b17634147ac826 /builtin/fetch.c | |
parent | f876b5a6868faa69a3d12aa59d65c5af37a91ff3 (diff) | |
parent | c54980ab83661e8e290003fbd5ab44b12e4e77b1 (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 'builtin/fetch.c')
-rw-r--r-- | builtin/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index 3aecbe4a3d..a0fca93bb6 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -80,7 +80,7 @@ static int recurse_submodules_cli = RECURSE_SUBMODULES_DEFAULT; static int recurse_submodules_default = RECURSE_SUBMODULES_ON_DEMAND; static int shown_url = 0; static struct refspec refmap = REFSPEC_INIT_FETCH; -static struct list_objects_filter_options filter_options; +static struct list_objects_filter_options filter_options = LIST_OBJECTS_FILTER_INIT; static struct string_list server_options = STRING_LIST_INIT_DUP; static struct string_list negotiation_tip = STRING_LIST_INIT_NODUP; static int fetch_write_commit_graph = -1; |