diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-08-11 04:52:32 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-11 04:52:32 (GMT) |
commit | 312d5b7429508cc339ae66e9d618b4308dd1d1e8 (patch) | |
tree | b435b8a84823be04082205c660942cecd9f102b5 /commit-graph.c | |
parent | a6aeb2fef9850e05c51e36a8c05b019e2954b2ef (diff) | |
parent | cb88b37cb9f711f702ea3d1ec3226db44081b454 (diff) | |
download | git-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.c | 2 |
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); |