summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-10-07 02:32:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-07 02:32:54 (GMT)
commitad8f0368b45bf1ab0f1339033d0a62cee94b1ae2 (patch)
tree71a1f07b3ab935a0e2efd73b71b17bd3a4d82403 /builtin
parentba2d45112224a0bd5ba0f10ba180c88d148cec36 (diff)
parenta4cafc737916c2df5a52875cb1d0976662e3ab0e (diff)
downloadgit-ad8f0368b45bf1ab0f1339033d0a62cee94b1ae2.zip
git-ad8f0368b45bf1ab0f1339033d0a62cee94b1ae2.tar.gz
git-ad8f0368b45bf1ab0f1339033d0a62cee94b1ae2.tar.bz2
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.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c
index b8dc2e1..74dbfad 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))) {