Skip to content

Commit 289598f

Browse files
authored
Merge pull request #1379 from atetubou/object_info_quick
fetch-pack: specify OBJECT_INFO_QUICK to remove duplicate prepare_pac…
2 parents 3aaabcf + ff4a783 commit 289598f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fetch-pack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,8 @@ static int everything_local(struct fetch_pack_args *args,
717717
for (ref = *refs; ref; ref = ref->next) {
718718
struct object *o;
719719

720-
if (!has_object_file(&ref->old_oid))
720+
if (!has_object_file_with_flags(&ref->old_oid,
721+
OBJECT_INFO_QUICK))
721722
continue;
722723

723724
o = parse_object(&ref->old_oid);

0 commit comments

Comments
 (0)