]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport-helper.c
Eleventh batch
[thirdparty/git.git] / transport-helper.c
index 9e1279b928bb3eadf110e43c091b4a3ba789fe3b..a9d690297e1fe33abdafed6126f0b4541ce35af5 100644 (file)
@@ -854,6 +854,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)