Skip to content

Commit c2b8aef

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 d70ecc9 + 50ac094 commit c2b8aef

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
@@ -762,6 +762,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,
762762
save_commit_buffer = 0;
763763

764764
trace2_region_enter("fetch-pack", "parse_remote_refs_and_find_cutoff", NULL);
765+
enable_fscache(1);
765766
for (ref = *refs; ref; ref = ref->next) {
766767
struct commit *commit;
767768

@@ -788,6 +789,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,
788789
if (!cutoff || cutoff < commit->date)
789790
cutoff = commit->date;
790791
}
792+
enable_fscache(0);
791793
trace2_region_leave("fetch-pack", "parse_remote_refs_and_find_cutoff", NULL);
792794

793795
/*

0 commit comments

Comments
 (0)