]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit-graph.c
Merge branch 'hx/lookup-commit-in-graph-fix' into maint
[thirdparty/git.git] / commit-graph.c
index 92d450333664d4298eb9cbcda332fe857fd22458..2b04ef072d17c2d787e2f949987f097f19dfb2c2 100644 (file)
@@ -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);