mirror of
https://github.com/git/git.git
synced 2026-01-18 06:34:21 +00:00
Merge pull request #1426 from atetubou/fetch_pack
fetch-pack.c: enable fscache for stats under .git/objects
This commit is contained in:
@@ -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;
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user