Merge branch 'jk/ref-array-push'
[gitweb.git] / builtin / mktree.c
index e39fe5d4239f34f273370d66ba5b19f1c6d53d11..263c530315a4fe435a88f2042c768350f72e837b 100644 (file)
@@ -116,7 +116,7 @@ static void mktree_line(char *buf, size_t len, int nul_term_line, int allow_miss
        }
 
        /* Check the type of object identified by sha1 */
-       obj_type = sha1_object_info(oid.hash, NULL);
+       obj_type = oid_object_info(&oid, NULL);
        if (obj_type < 0) {
                if (allow_missing) {
                        ; /* no problem - missing objects are presumed to be of the right type */