Skip to content

Commit a22e43c

Browse files
committed
Merge pull request #1426 from atetubou/fetch_pack
fetch-pack.c: enable fscache for stats under .git/objects
2 parents 0316f80 + 456db41 commit a22e43c

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

753753
save_commit_buffer = 0;
754754

755+
enable_fscache(1);
755756
for (ref = *refs; ref; ref = ref->next) {
756757
struct object *o;
757758
unsigned int flags = OBJECT_INFO_QUICK;
@@ -781,6 +782,7 @@ static int everything_local(struct fetch_pack_args *args,
781782
cutoff = commit->date;
782783
}
783784
}
785+
enable_fscache(0);
784786

785787
oidset_clear(&loose_oid_set);
786788

0 commit comments

Comments
 (0)