Commit a3e23a7c by Vicent Martí

Merge pull request #455 from brodie/pack-fixes

odb_pack: don't do ambiguity checks for fully qualified SHA1 hashes
parents 3707b331 b2a2702d
......@@ -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 */
const unsigned char *next = current + stride;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment