]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/grep.c
Sync with 2.31.5
[thirdparty/git.git] / builtin / grep.c
index b71b4a2de65322c48ad80738a3cb8c855d523b6f..ab8822e68f42dab702d096f28b88c492e6a3f4ef 100644 (file)
@@ -421,7 +421,7 @@ static int grep_submodule(struct grep_opt *opt,
        struct grep_opt subopt;
        int hit;
 
-       sub = submodule_from_path(superproject, &null_oid, path);
+       sub = submodule_from_path(superproject, null_oid(), path);
 
        if (!is_submodule_active(superproject, path))
                return 0;