sha1-name.c: remove implicit dependency on the_index
[gitweb.git] / builtin / grep.c
index 0cc671f7d6396dc03986a27d30b0149db1ebd9be..fc7a9a928302f79d26fd4d0f57c32f8efd7b9f6e 100644 (file)
@@ -1021,7 +1021,8 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
                        break;
                }
 
-               if (get_oid_with_context(arg, GET_OID_RECORD_PATH,
+               if (get_oid_with_context(the_repository, arg,
+                                        GET_OID_RECORD_PATH,
                                         &oid, &oc)) {
                        if (seen_dashdash)
                                die(_("unable to resolve revision: %s"), arg);