Skip to content

Commit bc2d0c3

Browse files
jeffhostetlergitster
authored andcommitted
fetch-pack: add --no-filter
Fixup fetch-pack to accept --no-filter to be consistent with rev-list and pack-objects. Signed-off-by: Jeff Hostetler <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 640d8b7 commit bc2d0c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builtin/fetch-pack.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
157157
parse_list_objects_filter(&args.filter_options, arg);
158158
continue;
159159
}
160+
if (!strcmp(arg, ("--no-" CL_ARG__FILTER))) {
161+
list_objects_filter_release(&args.filter_options);
162+
continue;
163+
}
160164
usage(fetch_pack_usage);
161165
}
162166
if (deepen_not.nr)

0 commit comments

Comments
 (0)