]> git.ipfire.org Git - thirdparty/git.git/blobdiff - revision.c
revision: empty pathspecs should not use Bloom filters
[thirdparty/git.git] / revision.c
index ddf09ab0aa94b9643de04735c0a75e03fad35392..667ca36e1cc7f093a5684c465147b2d366e8acb4 100644 (file)
@@ -702,6 +702,10 @@ static void prepare_to_use_bloom_filter(struct rev_info *revs)
                path = pi->match;
 
        len = strlen(path);
+       if (!len) {
+               revs->bloom_filter_settings = NULL;
+               return;
+       }
 
        revs->bloom_key = xmalloc(sizeof(struct bloom_key));
        fill_bloom_key(path, len, revs->bloom_key, revs->bloom_filter_settings);