match-trees: use hashcpy to splice trees
[gitweb.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) {