| 2299 | } |
| 2300 | |
| 2301 | static const char *parse_pack_header(struct pack_header *hdr) |
| 2302 | { |
| 2303 | switch (read_pack_header(0, hdr)) { |
| 2304 | case PH_ERROR_EOF: |
| 2305 | return "eof before pack header was fully read"; |
| 2306 | |
| 2307 | case PH_ERROR_PACK_SIGNATURE: |
| 2308 | return "protocol error (pack signature mismatch detected)"; |
| 2309 | |
| 2310 | case PH_ERROR_PROTOCOL: |
| 2311 | return "protocol error (pack version unsupported)"; |
| 2312 | |
| 2313 | default: |
| 2314 | return "unknown error in parse_pack_header"; |
| 2315 | |
| 2316 | case 0: |
| 2317 | return NULL; |
| 2318 | } |
| 2319 | } |
| 2320 | |
| 2321 | static struct tempfile *pack_lockfile; |
| 2322 |
no test coverage detected