]> git.ipfire.org Git - thirdparty/git.git/blobdiff - apply.c
convert: convert convert_to_git to take an index
[thirdparty/git.git] / apply.c
diff --git a/apply.c b/apply.c
index c49cef0637355d33a7a1636fb283210784f14e02..97afb6f60a28b8b42d36b4d376db6156757f8c80 100644 (file)
--- a/apply.c
+++ b/apply.c
@@ -2267,7 +2267,7 @@ static int read_old_data(struct stat *st, const char *path, struct strbuf *buf)
        case S_IFREG:
                if (strbuf_read_file(buf, path, st->st_size) != st->st_size)
                        return error(_("unable to open or read %s"), path);
-               convert_to_git(path, buf->buf, buf->len, buf, 0);
+               convert_to_git(&the_index, path, buf->buf, buf->len, buf, 0);
                return 0;
        default:
                return -1;