Skip to content

Commit 44db187

Browse files
committed
Merge pull request #1426 from atetubou/fetch_pack
fetch-pack.c: enable fscache for stats under .git/objects
2 parents 46a16eb + d18294c commit 44db187

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fetch-pack.c

+2
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ static int everything_local(struct fetch_pack_args *args,
713713

714714
save_commit_buffer = 0;
715715

716+
enable_fscache(1);
716717
for (ref = *refs; ref; ref = ref->next) {
717718
struct object *o;
718719

@@ -734,6 +735,7 @@ static int everything_local(struct fetch_pack_args *args,
734735
cutoff = commit->date;
735736
}
736737
}
738+
enable_fscache(0);
737739

738740
if (!args->deepen) {
739741
for_each_ref(mark_complete_oid, NULL);

0 commit comments

Comments
 (0)