Skip to content

Commit be1f8e4

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
Merge pull request #1426 from atetubou/fetch_pack
fetch-pack.c: enable fscache for stats under .git/objects
2 parents 48a4d64 + a1c8687 commit be1f8e4

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

679679
save_commit_buffer = 0;
680680

681+
enable_fscache(1);
681682
for (ref = *refs; ref; ref = ref->next) {
682683
struct object *o;
683684
unsigned int flags = OBJECT_INFO_QUICK;
@@ -707,6 +708,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,
707708
cutoff = commit->date;
708709
}
709710
}
711+
enable_fscache(0);
710712

711713
oidset_clear(&loose_oid_set);
712714

0 commit comments

Comments
 (0)