| 953 | } |
| 954 | |
| 955 | int bundle_uri_command(struct repository *r, |
| 956 | struct packet_reader *request) |
| 957 | { |
| 958 | struct packet_writer writer; |
| 959 | packet_writer_init(&writer, 1); |
| 960 | |
| 961 | while (packet_reader_read(request) == PACKET_READ_NORMAL) |
| 962 | die(_("bundle-uri: unexpected argument: '%s'"), request->line); |
| 963 | if (request->status != PACKET_READ_FLUSH) |
| 964 | die(_("bundle-uri: expected flush after arguments")); |
| 965 | |
| 966 | /* |
| 967 | * Read all "bundle.*" config lines to the client as key=value |
| 968 | * packet lines. |
| 969 | */ |
| 970 | repo_config(r, config_to_packet_line, &writer); |
| 971 | |
| 972 | packet_writer_flush(&writer); |
| 973 | |
| 974 | return 0; |
| 975 | } |
| 976 | |
| 977 | /** |
| 978 | * General API for {transport,connect}.c etc. |
nothing calls this directly
no test coverage detected