Skip to content

Commit 8915bcf

Browse files
committed
Merge pull request #1426 from atetubou/fetch_pack
fetch-pack.c: enable fscache for stats under .git/objects
2 parents 89ad8fd + 8fe910f commit 8915bcf

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
@@ -722,6 +722,7 @@ static int everything_local(struct fetch_pack_args *args,
722722

723723
save_commit_buffer = 0;
724724

725+
enable_fscache(1);
725726
for (ref = *refs; ref; ref = ref->next) {
726727
struct object *o;
727728

@@ -743,6 +744,7 @@ static int everything_local(struct fetch_pack_args *args,
743744
cutoff = commit->date;
744745
}
745746
}
747+
enable_fscache(0);
746748

747749
if (!args->no_dependents) {
748750
if (!args->deepen) {

0 commit comments

Comments
 (0)