Re: An endless loop fetching issue with partial clone, alternates and commit graph
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Jun 15, 2022, 02:18 UTC
- Message-ID
- <YqlBjET0tf7V9/sg@nand.local>
- In-Reply-To
- <CANe9W27GVn-w1WSZNTxh5SKEMzHGEZQCF48vmbvMi4AUEg12yQ@mail.gmail.com>
[+cc Stolee]
On Tue, Jun 14, 2022 at 03:25:13PM +0800, Haiyng Tan wrote:
> I think it's caused by using lazy-fetch in > deref_without_lazy_fetch_extended(). In lookup_commit_in_graph(), > lazy-fetch is initiated by repo_has_object_file() used. has_object() > should be used, it's no-lazy-fetch.
Hmm. Are there cases where lookup_commit_in_graph() is expected to lazily fetch missing objects from promisor remotes? If so, then this wouldn't quite work. If not, then this seems like an appropriate fix to me.
Thanks, Taylor