aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-07-19 16:40:16 -0700
committerJunio C Hamano <gitster@pobox.com>2022-07-19 16:40:16 -0700
commit99c0d94eaa81e3579121c539e0ca37483dbab51e (patch)
tree62edf1b86691d95437c83972527ca6b6971abaa0 /commit-graph.c
parent418aef9055c3ca85ae6439e7e76c91558f04d94b (diff)
parentcb88b37cb9f711f702ea3d1ec3226db44081b454 (diff)
downloadgit-99c0d94eaa81e3579121c539e0ca37483dbab51e.tar.gz
Merge branch 'hx/lookup-commit-in-graph-fix'
A corner case bug where lazily fetching objects from a promisor remote resulted in infinite recursion has been corrected. * 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 92d4503336..2b04ef072d 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);