mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 15:00:04 +00:00
Rethrow pack entry offset error
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
This commit is contained in:
parent
2f512ff81e
commit
061047ccb6
@ -475,7 +475,7 @@ off_t get_delta_base(
|
|||||||
} else if (type == GIT_OBJ_REF_DELTA) {
|
} else if (type == GIT_OBJ_REF_DELTA) {
|
||||||
/* The base entry _must_ be in the same pack */
|
/* The base entry _must_ be in the same pack */
|
||||||
if (pack_entry_find_offset(&base_offset, &unused, p, (git_oid *)base_info, GIT_OID_HEXSZ) < GIT_SUCCESS)
|
if (pack_entry_find_offset(&base_offset, &unused, p, (git_oid *)base_info, GIT_OID_HEXSZ) < GIT_SUCCESS)
|
||||||
return git__throw(GIT_EPACKCORRUPTED, "Base entry delta is not in the same pack");
|
return git__rethrow(GIT_EPACKCORRUPTED, "Base entry delta is not in the same pack");
|
||||||
*curpos += 20;
|
*curpos += 20;
|
||||||
} else
|
} else
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user