Skip to content

Commit b49c2a4

Browse files
committed
Merge pull request #1426 from atetubou/fetch_pack
fetch-pack.c: enable fscache for stats under .git/objects
2 parents 93852be + 3b66f15 commit b49c2a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fetch-pack.c

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

668668
save_commit_buffer = 0;
669669

670+
enable_fscache(1);
670671
for (ref = *refs; ref; ref = ref->next) {
671672
struct object *o;
672673

@@ -687,6 +688,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,
687688
cutoff = commit->date;
688689
}
689690
}
691+
enable_fscache(0);
690692

691693
if (!args->deepen) {
692694
for_each_ref(mark_complete_oid, NULL);

0 commit comments

Comments
 (0)