Commit Diff
--- lib/pack.c +++ lib/pack.c @@ -1143,7 +1143,7 @@ resolve_ref_delta(struct got_delta_chain *deltas, stru if (err) return err; if (pack->map) { - delta_data_offset = delta_offset + tslen + sizeof(id); + delta_data_offset = delta_offset + tslen + SHA1_DIGEST_LENGTH; } else { delta_data_offset = lseek(pack->fd, 0, SEEK_CUR); if (delta_data_offset == -1)