| 258 | } |
| 259 | |
| 260 | static int process_dummy_ref(const struct packet_reader *reader) |
| 261 | { |
| 262 | const char *line = reader->line; |
| 263 | struct object_id oid; |
| 264 | const char *name; |
| 265 | |
| 266 | if (parse_oid_hex_algop(line, &oid, &name, reader->hash_algo)) |
| 267 | return 0; |
| 268 | if (*name != ' ') |
| 269 | return 0; |
| 270 | name++; |
| 271 | |
| 272 | return oideq(reader->hash_algo->null_oid, &oid) && |
| 273 | !strcmp(name, "capabilities^{}"); |
| 274 | } |
| 275 | |
| 276 | static void check_no_capabilities(const char *line, size_t len) |
| 277 | { |
no test coverage detected