Commit Diff
--- lib/pack_index.c +++ lib/pack_index.c @@ -595,7 +595,7 @@ update_packidx(struct got_packidx *packidx, uint32_t n int idx; uint32_t nindexed = be32toh(packidx->hdr.fanout_table[0xff]); - idx = find_object_idx(packidx, obj->id.sha1); + idx = find_object_idx(packidx, obj->id.hash); if (idx == -1) return; /* object already indexed */