sha1_file: convert sha1_object_info* to object_id
[gitweb.git] / submodule.c
index c210640d35694c770c6983f84c9cee02588f84ff..a05c544e8dad2600ba196e43fd58b953c6ba3d1b 100644 (file)
@@ -817,7 +817,7 @@ static int check_has_commit(const struct object_id *oid, void *data)
 {
        struct has_commit_data *cb = data;
 
-       enum object_type type = sha1_object_info(oid->hash, NULL);
+       enum object_type type = oid_object_info(oid, NULL);
 
        switch (type) {
        case OBJ_COMMIT: