From 0b74f7743d5704f3ea3cb0e6781af4de319c6a5b Mon Sep 17 00:00:00 2001 From: Takuto Ikuta Date: Tue, 28 Nov 2017 10:44:33 +0900 Subject: [PATCH] fixup! enable fscache while iterating every local refs This reverts commit 09ccec45e3b05ee19f17a0b3c12a27220f13c16a. Using fscache here is not right way. It is better to specify OBJECT_INFO_QUICK flag for has_object_file instead, as was done in Pull Request #1379. This flag prevents directory list up for each refs also. Signed-off-by: Takuto Ikuta Signed-off-by: Johannes Schindelin --- fetch-pack.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fetch-pack.c b/fetch-pack.c index 6274a524247ade..008b25d3db0872 100644 --- a/fetch-pack.c +++ b/fetch-pack.c @@ -713,7 +713,6 @@ static int everything_local(struct fetch_pack_args *args, save_commit_buffer = 0; - enable_fscache(1); for (ref = *refs; ref; ref = ref->next) { struct object *o; @@ -734,7 +733,6 @@ static int everything_local(struct fetch_pack_args *args, cutoff = commit->date; } } - enable_fscache(0); if (!args->deepen) { for_each_ref(mark_complete_oid, NULL);