Remove get_object_hash.
[gitweb.git] / builtin / grep.c
index ca3ceea42c2457413f14b645af842d220c516df9..2825453d185407847402dfc129c83d7e899e8252 100644 (file)
@@ -459,7 +459,7 @@ static int grep_object(struct grep_opt *opt, const struct pathspec *pathspec,
                       struct object *obj, const char *name, const char *path)
 {
        if (obj->type == OBJ_BLOB)
-               return grep_sha1(opt, get_object_hash(*obj), name, 0, path);
+               return grep_sha1(opt, obj->oid.hash, name, 0, path);
        if (obj->type == OBJ_COMMIT || obj->type == OBJ_TREE) {
                struct tree_desc tree;
                void *data;