fsck: git receive-pack: support excluding objects from fsck'ing
[gitweb.git] / builtin / index-pack.c
index 627eb3f35a89f2f33e3201efcf1c4c5612d9e766..67b4bef78b71d6e3ea7ccdea9ee9abf95e690936 100644 (file)
@@ -1633,6 +1633,10 @@ int cmd_index_pack(int argc, const char **argv, const char *prefix)
                        } else if (!strcmp(arg, "--strict")) {
                                strict = 1;
                                do_fsck_object = 1;
+                       } else if (skip_prefix(arg, "--strict=", &arg)) {
+                               strict = 1;
+                               do_fsck_object = 1;
+                               fsck_set_msg_types(&fsck_options, arg);
                        } else if (!strcmp(arg, "--check-self-contained-and-connected")) {
                                strict = 1;
                                check_self_contained_and_connected = 1;