Skip to content

Commit

Permalink
Merge pull request #1426 from atetubou/fetch_pack
Browse files Browse the repository at this point in the history
fetch-pack.c: enable fscache for stats under .git/objects
  • Loading branch information
dscho authored and Git for Windows Build Agent committed Oct 10, 2024
2 parents fff5512 + 0d07f34 commit e35d58e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fetch-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,
save_commit_buffer = 0;

trace2_region_enter("fetch-pack", "parse_remote_refs_and_find_cutoff", NULL);
enable_fscache(1);
for (ref = *refs; ref; ref = ref->next) {
struct commit *commit;

Expand All @@ -785,6 +786,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,
if (!cutoff || cutoff < commit->date)
cutoff = commit->date;
}
enable_fscache(0);
trace2_region_leave("fetch-pack", "parse_remote_refs_and_find_cutoff", NULL);

/*
Expand Down

0 comments on commit e35d58e

Please sign in to comment.