Convert struct object to object_id
[gitweb.git] / object.c
index 4a0f41389aaf0f83a9e9335155be3829ccd94329..c6844c901f8355147560ba2da75a7a07af716d39 100644 (file)
--- a/object.c
+++ b/object.c
@@ -168,7 +168,7 @@ void *object_as_type(struct object *obj, enum object_type type, int quiet)
        else {
                if (!quiet)
                        error("object %s is a %s, not a %s",
-                             sha1_to_hex(obj->sha1),
+                             oid_to_hex(&obj->oid),
                              typename(obj->type), typename(type));
                return NULL;
        }