Skip to content

Commit 074256c

Browse files
committed
Merge pull request #1426 from atetubou/fetch_pack
fetch-pack.c: enable fscache for stats under .git/objects
2 parents 22dc75d + 66a381b commit 074256c

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

672672
save_commit_buffer = 0;
673673

674+
enable_fscache(1);
674675
for (ref = *refs; ref; ref = ref->next) {
675676
struct object *o;
676677

@@ -691,6 +692,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,
691692
cutoff = commit->date;
692693
}
693694
}
695+
enable_fscache(0);
694696

695697
if (!args->deepen) {
696698
for_each_ref(mark_complete_oid, NULL);

0 commit comments

Comments
 (0)