]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport-helper.c
transport: convert get_refs_list to take a list of ref prefixes
[thirdparty/git.git] / transport-helper.c
index 508015023176290ec0f8d78043d852cdd37d5ce6..8774ab3013965d79a84d7dfdfbe9ec0b3592b63b 100644 (file)
@@ -1026,7 +1026,8 @@ static int has_attribute(const char *attrs, const char *attr) {
        }
 }
 
-static struct ref *get_refs_list(struct transport *transport, int for_push)
+static struct ref *get_refs_list(struct transport *transport, int for_push,
+                                const struct argv_array *ref_prefixes)
 {
        struct helper_data *data = transport->data;
        struct child_process *helper;
@@ -1039,7 +1040,7 @@ static struct ref *get_refs_list(struct transport *transport, int for_push)
 
        if (process_connect(transport, for_push)) {
                do_take_over(transport);
-               return transport->vtable->get_refs_list(transport, for_push);
+               return transport->vtable->get_refs_list(transport, for_push, ref_prefixes);
        }
 
        if (data->push && for_push)