]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/grep.c
Merge branch 'jk/loose-object-cache'
[thirdparty/git.git] / builtin / grep.c
index 71df52a333cbc756b057e93bf3d2affca8157860..bad9c0a3d5134a69d9388e169793b03c9952d9bf 100644 (file)
@@ -437,7 +437,7 @@ static int grep_submodule(struct grep_opt *opt, struct repository *superproject,
         * store is no longer global and instead is a member of the repository
         * object.
         */
-       add_to_alternates_memory(submodule.objects->objectdir);
+       add_to_alternates_memory(submodule.objects->odb->path);
        grep_read_unlock();
 
        if (oid) {