]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport-helper.c
push: parse and set flag for "--force-if-includes"
[thirdparty/git.git] / transport-helper.c
index 6157de30c704ff4382efdf0de4671f10a89931fb..5f6e0b3bd874dba714c107dffebd423ef25d10b4 100644 (file)
@@ -938,6 +938,11 @@ static void set_common_push_options(struct transport *transport,
                if (set_helper_option(transport, TRANS_OPT_ATOMIC, "true") != 0)
                        die(_("helper %s does not support --atomic"), name);
 
+       if (flags & TRANSPORT_PUSH_FORCE_IF_INCLUDES)
+               if (set_helper_option(transport, TRANS_OPT_FORCE_IF_INCLUDES, "true") != 0)
+                       die(_("helper %s does not support --%s"),
+                           name, TRANS_OPT_FORCE_IF_INCLUDES);
+
        if (flags & TRANSPORT_PUSH_OPTIONS) {
                struct string_list_item *item;
                for_each_string_list_item(item, transport->push_options)