Merge branch 'ab/git-svn-get-record-typofix'
[gitweb.git] / builtin / prune.c
index 4394d01c9350ae3e1fa26de034edf1509128469e..38ced18dadff03836c6bed3fcbdefe8bd528a7c0 100644 (file)
@@ -50,7 +50,7 @@ static int prune_object(const struct object_id *oid, const char *fullpath,
        if (st.st_mtime > expire)
                return 0;
        if (show_only || verbose) {
-               enum object_type type = sha1_object_info(oid->hash, NULL);
+               enum object_type type = oid_object_info(oid, NULL);
                printf("%s %s\n", oid_to_hex(oid),
                       (type > 0) ? type_name(type) : "unknown");
        }