Skip to content

Commit 6e59a46

Browse files
committed
Merge pull request #1426 from atetubou/fetch_pack
fetch-pack.c: enable fscache for stats under .git/objects
2 parents db54c6e + ab46748 commit 6e59a46

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fetch-pack.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,
684684

685685
save_commit_buffer = 0;
686686

687+
enable_fscache(1);
687688
for (ref = *refs; ref; ref = ref->next) {
688689
struct object *o;
689690
unsigned int flags = OBJECT_INFO_QUICK;
@@ -713,6 +714,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,
713714
cutoff = commit->date;
714715
}
715716
}
717+
enable_fscache(0);
716718

717719
oidset_clear(&loose_oid_set);
718720

0 commit comments

Comments
 (0)