mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 18:08:11 +00:00
Merge pull request #455 from brodie/pack-fixes
odb_pack: don't do ambiguity checks for fully qualified SHA1 hashes
This commit is contained in:
commit
a3e23a7c0a
@ -722,7 +722,7 @@ static int pack_entry_find_offset(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (found && pos + 1 < (int)p->num_objects) {
|
if (found && len != GIT_OID_HEXSZ && pos + 1 < (int)p->num_objects) {
|
||||||
/* Check for ambiguousity */
|
/* Check for ambiguousity */
|
||||||
const unsigned char *next = current + stride;
|
const unsigned char *next = current + stride;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user