]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport-helper.c
Start the 2.46 cycle
[thirdparty/git.git] / transport-helper.c
index b660b7942f9f9dbfc76193968d3511047b8afd84..8d284b24d5d5e79434932a12e38d06f15ac665da 100644 (file)
@@ -1210,16 +1210,13 @@ static struct ref *get_refs_list_using_list(struct transport *transport,
        data->get_refs_list_called = 1;
        helper = get_helper(transport);
 
-       if (data->object_format) {
-               write_str_in_full(helper->in, "option object-format\n");
-               if (recvline(data, &buf) || strcmp(buf.buf, "ok"))
-                       exit(128);
-       }
+       if (data->object_format)
+               set_helper_option(transport, "object-format", "true");
 
        if (data->push && for_push)
-               write_str_in_full(helper->in, "list for-push\n");
+               write_constant(helper->in, "list for-push\n");
        else
-               write_str_in_full(helper->in, "list\n");
+               write_constant(helper->in, "list\n");
 
        while (1) {
                char *eov, *eon;