]> git.ipfire.org Git - thirdparty/git.git/blobdiff - bloom.c
commit-graph: pass a 'struct repository *' in more places
[thirdparty/git.git] / bloom.c
diff --git a/bloom.c b/bloom.c
index 1a573226e70e571b49a7af29d49740768b1465af..cd9380ac623d4a01ec04ebd2110747e756c70df4 100644 (file)
--- a/bloom.c
+++ b/bloom.c
@@ -38,7 +38,7 @@ static int load_bloom_filter_from_graph(struct commit_graph *g,
        while (graph_pos < g->num_commits_in_base)
                g = g->base_graph;
 
-       /* The commit graph commit 'c' lives in doesn't carry bloom filters. */
+       /* The commit graph commit 'c' lives in doesn't carry Bloom filters. */
        if (!g->chunk_bloom_indexes)
                return 0;
 
@@ -195,8 +195,8 @@ struct bloom_filter *get_bloom_filter(struct repository *r,
        if (!filter->data) {
                load_commit_graph_info(r, c);
                if (commit_graph_position(c) != COMMIT_NOT_FROM_GRAPH &&
-                       r->objects->commit_graph->chunk_bloom_indexes)
-                       load_bloom_filter_from_graph(r->objects->commit_graph, filter, c);
+                       load_bloom_filter_from_graph(r->objects->commit_graph, filter, c))
+                               return filter;
        }
 
        if (filter->data)