Skip to content

hx/endless_loop_with_lookup_commit_in_graph-v1

@chiyutianyi chiyutianyi tagged this 18 Jun 02:40
If a commit is in the commit graph, we would expect the commit to also
be present. So we should use has_object() instead of
repo_has_object_file(), which may start a new lazy fetch.

We can see the endless loop issue via this[1].

1. https://lore.kernel.org/git/20220612161707.21807-1-chiyutianyi@gmail.com/

Signed-off-by: Han Xin <hanxin.hx@bytedance.com>
Assets 2
Loading