cache.h: allow oid_object_info to handle arbitrary repositories
[gitweb.git] / combine-diff.c
index cf55f03b75e43adf8c0200fca816adafa4b796ff..2ef495963fc1cf2e092778d35f1965912d7eaac0 100644 (file)
@@ -306,7 +306,7 @@ static char *grab_blob(const struct object_id *oid, unsigned int mode,
                *size = fill_textconv(textconv, df, &blob);
                free_filespec(df);
        } else {
-               blob = read_sha1_file(oid->hash, &type, size);
+               blob = read_object_file(oid, &type, size);
                if (type != OBJ_BLOB)
                        die("object '%s' is not a blob!", oid_to_hex(oid));
        }