From: Jeff Hostetler <jeffh...@microsoft.com>

Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
 connected.c | 3 +++
 connected.h | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/connected.c b/connected.c
index 136c2ac..c25b816 100644
--- a/connected.c
+++ b/connected.c
@@ -62,6 +62,9 @@ int check_connected(sha1_iterate_fn fn, void *cb_data,
                argv_array_pushf(&rev_list.args, "--progress=%s",
                                 _("Checking connectivity"));
 
+       if (opt->filter_relax)
+               argv_array_push(&rev_list.args, ("--" CL_ARG_FILTER_RELAX));
+
        rev_list.git_cmd = 1;
        rev_list.env = opt->env;
        rev_list.in = -1;
diff --git a/connected.h b/connected.h
index 4ca325f..370710e 100644
--- a/connected.h
+++ b/connected.h
@@ -35,6 +35,12 @@ struct check_connected_options {
        int progress;
 
        /*
+        * Relax consistency checks for missing blobs (presumably
+        * due to the use 'filter-objects' feature).
+        */
+       int filter_relax;
+
+       /*
         * Insert these variables into the environment of the child process.
         */
        const char **env;
-- 
2.9.3

Reply via email to