commit - e8f51a79078ceac369889d40494e721e7a6027f4
commit + df9b8d556c1e74a55dc19bb0a6e6375336e6e27f
blob - f8b1486958a1d50f30eeb81975bc1f4dd19949b8
blob + 22f7e59e0c4b66b5d2e157609322d172b0fb4461
--- lib/pack_index.c
+++ lib/pack_index.c
break;
case GOT_OBJ_TYPE_REF_DELTA:
memset(obj->id.hash, 0xff, digest_len);
+ obj->id.algo = pack->algo;
if (pack->map) {
if (mapoff + digest_len >= pack->filesize) {
err = got_error(GOT_ERR_BAD_PACKFILE);
break;
case GOT_OBJ_TYPE_OFFSET_DELTA:
memset(obj->id.hash, 0xff, digest_len);
+ obj->id.algo = pack->algo;
err = got_pack_parse_offset_delta(&obj->delta.ofs.base_offset,
&obj->delta.ofs.base_offsetlen, pack, obj->off,
obj->tslen);