push: document & test --force-with-lease with multiple remotes
[gitweb.git] / transport-helper.c
index e4fd98238308de91b1a242335db236fd43d2ecc5..dc90a1fb769c078be2fbf77018242b6fc209acf6 100644 (file)
@@ -827,6 +827,13 @@ static void set_common_push_options(struct transport *transport,
                if (set_helper_option(transport, TRANS_OPT_PUSH_CERT, "if-asked") != 0)
                        die("helper %s does not support --signed=if-asked", name);
        }
+
+       if (flags & TRANSPORT_PUSH_OPTIONS) {
+               struct string_list_item *item;
+               for_each_string_list_item(item, transport->push_options)
+                       if (set_helper_option(transport, "push-option", item->string) != 0)
+                               die("helper %s does not support 'push-option'", name);
+       }
 }
 
 static int push_refs_with_push(struct transport *transport,