]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/cat-file.c
convert.c: remove an implicit dependency on the_index
[thirdparty/git.git] / builtin / cat-file.c
index 4a44b2404fb36bb01758cc68964799a0438d5933..c726ee10925b3489508da87235b182f24a8561ba 100644 (file)
@@ -39,7 +39,7 @@ static int filter_object(const char *path, unsigned mode,
                             oid_to_hex(oid), path);
        if ((type == OBJ_BLOB) && S_ISREG(mode)) {
                struct strbuf strbuf = STRBUF_INIT;
-               if (convert_to_working_tree(path, *buf, *size, &strbuf)) {
+               if (convert_to_working_tree(&the_index, path, *buf, *size, &strbuf)) {
                        free(*buf);
                        *size = strbuf.len;
                        *buf = strbuf_detach(&strbuf, NULL);