sha1_file: convert read_sha1_file to struct object_id
[gitweb.git] / builtin / grep.c
index 386a86b66e93d06744e03831d14745841ef8e2b6..bf50bab6f8f1bcf20110af6036c1eb924b70f78b 100644 (file)
@@ -306,7 +306,7 @@ static void *lock_and_read_oid_file(const struct object_id *oid, enum object_typ
        void *data;
 
        grep_read_lock();
-       data = read_sha1_file(oid->hash, type, size);
+       data = read_object_file(oid, type, size);
        grep_read_unlock();
        return data;
 }