Skip to content

Commit

Permalink
fixup! enable fscache while iterating every local refs
Browse files Browse the repository at this point in the history
This reverts commit 09ccec4.

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 <tikuta@chromium.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
Takuto Ikuta authored and dscho committed Nov 28, 2017
1 parent 3aaabcf commit 0b74f77
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fetch-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
Expand Down

0 comments on commit 0b74f77

Please sign in to comment.