| 181 | } |
| 182 | |
| 183 | int verify_pack_index(struct packed_git *p) |
| 184 | { |
| 185 | int err = 0; |
| 186 | |
| 187 | if (open_pack_index(p)) |
| 188 | return error("packfile %s index not opened", p->pack_name); |
| 189 | |
| 190 | /* Verify SHA1 sum of the index file */ |
| 191 | if (!hashfile_checksum_valid(p->repo->hash_algo, p->index_data, p->index_size)) |
| 192 | err = error("Packfile index for %s hash mismatch", |
| 193 | p->pack_name); |
| 194 | return err; |
| 195 | } |
| 196 | |
| 197 | int verify_pack(struct repository *r, struct packed_git *p, verify_fn fn, void *fn_data, |
| 198 | struct progress *progress, uint32_t base_count) |
no test coverage detected