]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport-helper.c
remote-curl: pass on atomic capability to remote side
[thirdparty/git.git] / transport-helper.c
index 6b05a88faf59ee74840b0f9fa340a5d9397a0f5d..1ecaa9101a8ef1546711f8e3428d7bd0691ada31 100644 (file)
@@ -840,6 +840,10 @@ static void set_common_push_options(struct transport *transport,
                        die(_("helper %s does not support --signed=if-asked"), name);
        }
 
+       if (flags & TRANSPORT_PUSH_ATOMIC)
+               if (set_helper_option(transport, TRANS_OPT_ATOMIC, "true") != 0)
+                       die(_("helper %s does not support --atomic"), name);
+
        if (flags & TRANSPORT_PUSH_OPTIONS) {
                struct string_list_item *item;
                for_each_string_list_item(item, transport->push_options)