diff.c: move read_index() code back to the caller
[gitweb.git] / builtin / grep.c
index 228b83990f990e8cd6f2a6bcbe05df0955921eda..056161f0f88596a6074ef6edddeaa6c894d8b801 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) {