Skip to content

Commit

Permalink
Merge pull request #1379 from atetubou/object_info_quick
Browse files Browse the repository at this point in the history
fetch-pack: specify OBJECT_INFO_QUICK to remove duplicate prepare_pac…
  • Loading branch information
dscho committed Nov 29, 2017
2 parents e45a859 + 1754c81 commit 81ab034
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fetch-pack.c
Expand Up @@ -716,7 +716,8 @@ static int everything_local(struct fetch_pack_args *args,
for (ref = *refs; ref; ref = ref->next) {
struct object *o;

if (!has_object_file(&ref->old_oid))
if (!has_object_file_with_flags(&ref->old_oid,
OBJECT_INFO_QUICK))
continue;

o = parse_object(&ref->old_oid);
Expand Down

0 comments on commit 81ab034

Please sign in to comment.