sha1_file: convert sha1_object_info* to object_id
[gitweb.git] / builtin / describe.c
index 7e6535a8bd372ef1f560ea8ecf5f957740cd5e42..de840f96a4ba0135667261cfd74c674672f4c6b4 100644 (file)
@@ -502,7 +502,7 @@ static void describe(const char *arg, int last_one)
 
        if (cmit)
                describe_commit(&oid, &sb);
-       else if (sha1_object_info(oid.hash, NULL) == OBJ_BLOB)
+       else if (oid_object_info(&oid, NULL) == OBJ_BLOB)
                describe_blob(oid, &sb);
        else
                die(_("%s is neither a commit nor blob"), arg);