Skip to content

Commit 81ab034

Browse files
committed
Merge pull request #1379 from atetubou/object_info_quick
fetch-pack: specify OBJECT_INFO_QUICK to remove duplicate prepare_pac…
2 parents e45a859 + 1754c81 commit 81ab034

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
@@ -716,7 +716,8 @@ static int everything_local(struct fetch_pack_args *args,
716716
for (ref = *refs; ref; ref = ref->next) {
717717
struct object *o;
718718

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

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

0 commit comments

Comments
 (0)