sha1_file: convert read_object_with_reference to object_id
[gitweb.git] / builtin / cat-file.c
index 27f4f235f6da176adf3e452f9f4fefd14bb453eb..4382b4447e4a1ad4d241df8b4792aff943091fea 100644 (file)
@@ -159,7 +159,7 @@ static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
                         * fall-back to the usual case.
                         */
                }
-               buf = read_object_with_reference(oid.hash, exp_type, &size, NULL);
+               buf = read_object_with_reference(&oid, exp_type, &size, NULL);
                break;
 
        default: