summaryrefslogtreecommitdiff
path: root/commit-graph.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-08-11 04:52:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-08-11 04:52:32 (GMT)
commit312d5b7429508cc339ae66e9d618b4308dd1d1e8 (patch)
treeb435b8a84823be04082205c660942cecd9f102b5 /commit-graph.c
parenta6aeb2fef9850e05c51e36a8c05b019e2954b2ef (diff)
parentcb88b37cb9f711f702ea3d1ec3226db44081b454 (diff)
downloadgit-312d5b7429508cc339ae66e9d618b4308dd1d1e8.zip
git-312d5b7429508cc339ae66e9d618b4308dd1d1e8.tar.gz
git-312d5b7429508cc339ae66e9d618b4308dd1d1e8.tar.bz2
Merge branch 'hx/lookup-commit-in-graph-fix' into maint
A corner case bug where lazily fetching objects from a promisor remote resulted in infinite recursion has been corrected. source: <cover.1656593279.git.hanxin.hx@bytedance.com> * hx/lookup-commit-in-graph-fix: t5330: remove run_with_limited_processses() commit-graph.c: no lazy fetch in lookup_commit_in_graph()
Diffstat (limited to 'commit-graph.c')
-rw-r--r--commit-graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit-graph.c b/commit-graph.c
index 92d4503..2b04ef0 100644
--- a/commit-graph.c
+++ b/commit-graph.c
@@ -898,7 +898,7 @@ struct commit *lookup_commit_in_graph(struct repository *repo, const struct obje
return NULL;
if (!search_commit_pos_in_graph(id, repo->objects->commit_graph, &pos))
return NULL;
- if (!repo_has_object_file(repo, id))
+ if (!has_object(repo, id, 0))
return NULL;
commit = lookup_commit(repo, id);