Merge branch 'jm/cache-entry-from-mem-pool'
[gitweb.git] / builtin / grep.c
index 61bcaf6e58d67c8bc66f6d8d260e91e7804caa5b..f9678f19e4aff52ae82ee1ff5d9842950b943f43 100644 (file)
@@ -647,7 +647,8 @@ static int grep_objects(struct grep_opt *opt, const struct pathspec *pathspec,
 
        for (i = 0; i < nr; i++) {
                struct object *real_obj;
-               real_obj = deref_tag(list->objects[i].item, NULL, 0);
+               real_obj = deref_tag(the_repository, list->objects[i].item,
+                                    NULL, 0);
 
                /* load the gitmodules file for this rev */
                if (recurse_submodules) {