diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-10-07 11:32:54 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-07 11:32:54 +0900 |
commit | ad8f0368b45bf1ab0f1339033d0a62cee94b1ae2 (patch) | |
tree | 71a1f07b3ab935a0e2efd73b71b17bd3a4d82403 /builtin | |
parent | Merge branch 'tg/stash-refresh-index' (diff) | |
parent | list-objects-filter: use empty string instead of NULL for sparse "base" (diff) | |
download | tgif-ad8f0368b45bf1ab0f1339033d0a62cee94b1ae2.tar.xz |
Merge branch 'jk/partial-clone-sparse-blob'
The name of the blob object that stores the filter specification
for sparse cloning/fetching was interpreted in a wrong place in the
code, causing Git to abort.
* jk/partial-clone-sparse-blob:
list-objects-filter: use empty string instead of NULL for sparse "base"
list-objects-filter: give a more specific error sparse parsing error
list-objects-filter: delay parsing of sparse oid
t5616: test cloning/fetching with sparse:oid=<oid> filter
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/rev-list.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c index b8dc2e1fba..74dbfad73d 100644 --- a/builtin/rev-list.c +++ b/builtin/rev-list.c @@ -471,12 +471,6 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix) parse_list_objects_filter(&filter_options, arg); if (filter_options.choice && !revs.blob_objects) die(_("object filtering requires --objects")); - if (filter_options.choice == LOFC_SPARSE_OID && - !filter_options.sparse_oid_value) - die( - _("invalid sparse value '%s'"), - list_objects_filter_spec( - &filter_options)); continue; } if (!strcmp(arg, ("--no-" CL_ARG__FILTER))) { |