| 239 | } |
| 240 | |
| 241 | static int receive_client_capability(struct repository *r, const char *key) |
| 242 | { |
| 243 | const char *value; |
| 244 | const struct protocol_capability *c = get_capability(key, &value); |
| 245 | |
| 246 | if (!c || c->command || !c->advertise(r, NULL)) |
| 247 | return 0; |
| 248 | |
| 249 | if (c->receive) |
| 250 | c->receive(r, value); |
| 251 | return 1; |
| 252 | } |
| 253 | |
| 254 | static int parse_command(struct repository *r, const char *key, struct protocol_capability **command) |
| 255 | { |
no test coverage detected