t4205: sort log output in a hash-independent way
[gitweb.git] / archive-zip.c
index 18b951b732ef4921b2913e8d614a5c00225e8d2c..6b20bce4d1cd78563037c8658dd8bd8f7690c47b 100644 (file)
@@ -325,7 +325,7 @@ static int write_zip_entry(struct archiver_args *args,
                compressed_size = 0;
                buffer = NULL;
        } else if (S_ISREG(mode) || S_ISLNK(mode)) {
-               enum object_type type = sha1_object_info(oid->hash, &size);
+               enum object_type type = oid_object_info(oid, &size);
 
                method = 0;
                attr2 = S_ISLNK(mode) ? ((mode | 0777) << 16) :