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 committed Aug 23, 2018
2 parents 8faed1c + e7429dd commit b51dba0
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 @@ -678,6 +678,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,

save_commit_buffer = 0;

enable_fscache(1);
for (ref = *refs; ref; ref = ref->next) {
struct object *o;
unsigned int flags = OBJECT_INFO_QUICK;
Expand Down Expand Up @@ -707,6 +708,7 @@ static void mark_complete_and_common_ref(struct fetch_negotiator *negotiator,
cutoff = commit->date;
}
}
enable_fscache(0);

oidset_clear(&loose_oid_set);

Expand Down

0 comments on commit b51dba0

Please sign in to comment.