Skip to content

Commit d29cbbb

Browse files
committed
Merge branch 'jc/longer-disambiguation-fix'
"git rev-parse --short" and friends failed to disambiguate two objects with object names that share common prefix longer than 32 characters, which has been fixed. * jc/longer-disambiguation-fix: abbrev: allow extending beyond 32 chars to disambiguate
2 parents cf47560 + 8655908 commit d29cbbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

object-name.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ static int extend_abbrev_len(const struct object_id *oid,
703703
while (mad->hex[i] && mad->hex[i] == get_hex_char_from_oid(oid, i))
704704
i++;
705705

706-
if (i < GIT_MAX_RAWSZ && i >= mad->cur_len)
706+
if (mad->hex[i] && i >= mad->cur_len)
707707
mad->cur_len = i + 1;
708708

709709
return 0;

0 commit comments

Comments
 (0)