diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-08-11 06:52:32 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-11 06:52:32 +0200 |
commit | 312d5b7429508cc339ae66e9d618b4308dd1d1e8 (patch) | |
tree | b435b8a84823be04082205c660942cecd9f102b5 /commit-graph.c | |
parent | Merge branch 'jc/resolve-undo' into maint (diff) | |
parent | t5330: remove run_with_limited_processses() (diff) | |
download | git-312d5b7429508cc339ae66e9d618b4308dd1d1e8.tar.xz git-312d5b7429508cc339ae66e9d618b4308dd1d1e8.zip |
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 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); |