packfile: add repository argument to retry_bad_packed_offset