parent
828ea97de4
commit
a1b475eeb4
|
@ -103,10 +103,10 @@ static int find_short_packed_object(int len, const unsigned char *match, unsigne
|
||||||
}
|
}
|
||||||
if (first < num) {
|
if (first < num) {
|
||||||
const unsigned char *now, *next;
|
const unsigned char *now, *next;
|
||||||
now = nth_packed_object_sha1(p, first);
|
now = nth_packed_object_sha1(p, first);
|
||||||
if (match_sha(len, match, now)) {
|
if (match_sha(len, match, now)) {
|
||||||
next = nth_packed_object_sha1(p, first+1);
|
next = nth_packed_object_sha1(p, first+1);
|
||||||
if (!next|| !match_sha(len, match, next)) {
|
if (!next|| !match_sha(len, match, next)) {
|
||||||
/* unique within this pack */
|
/* unique within this pack */
|
||||||
if (!found) {
|
if (!found) {
|
||||||
found_sha1 = now;
|
found_sha1 = now;
|
||||||
|
|
Loading…
Reference in New Issue