Skip to content

Commit cf9318d

Browse files
authored
Merge pull request #1372 from atetubou/enable_fscache_fetch
enable fscache while iterating every local refs
2 parents 8ce23d0 + 09ccec4 commit cf9318d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fetch-pack.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ static int everything_local(struct fetch_pack_args *args,
713713

714714
save_commit_buffer = 0;
715715

716+
enable_fscache(1);
716717
for (ref = *refs; ref; ref = ref->next) {
717718
struct object *o;
718719

@@ -733,6 +734,7 @@ static int everything_local(struct fetch_pack_args *args,
733734
cutoff = commit->date;
734735
}
735736
}
737+
enable_fscache(0);
736738

737739
if (!args->deepen) {
738740
for_each_ref(mark_complete_oid, NULL);

0 commit comments

Comments
 (0)