Skip to content

Commit 2aad8d9

Browse files
committed
Merge pull request #1426 from atetubou/fetch_pack
fetch-pack.c: enable fscache for stats under .git/objects
2 parents 176d051 + 8604a61 commit 2aad8d9

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
@@ -669,6 +669,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,
669669

670670
save_commit_buffer = 0;
671671

672+
enable_fscache(1);
672673
for (ref = *refs; ref; ref = ref->next) {
673674
struct object *o;
674675

@@ -689,6 +690,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,
689690
cutoff = commit->date;
690691
}
691692
}
693+
enable_fscache(0);
692694

693695
if (!args->deepen) {
694696
for_each_ref(mark_complete_oid, NULL);

0 commit comments

Comments
 (0)