doc/SubmittingPatches: show how to get a CLI commit summary
[gitweb.git] / transport-helper.c
index 91aed35ebbc3cbb4fb9acbad55ab3de69e62d9f5..1258d6aedd26538f55c60495a61608236262cfc1 100644 (file)
@@ -826,6 +826,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,