Prevent recursive fetch for all log trees again

The following discussion from !38733 (merged) should be addressed:

It might be worth looking into the root cause of the error (maybe follow-up material?), which I think happens because when fetchFiles retrieves the rest of the data it also triggers a recursive fetch for all log trees again:

log_tree_fetch

I am not a 100% sure how to fix this but I have a feeling that it could have to do with how Apollo caches the results from the local resolver that is responsible for retrieving the commits.

So I think fixing this would improve the performance for +1000-file repositories even more (less fetches and less data in memory) 🙂

Edited by Samantha Ming