expose a helper function peel_to_type().
[gitweb.git] / builtin-apply.c
index 46dad5b2a1ce6d70d540df8a40da94702dde68c7..6a88ff018df8890af8ef2e17340d5969dc1e396b 100644 (file)
@@ -1430,7 +1430,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);
+               convert_to_git(path, buf->buf, buf->len, buf, 0);
                return 0;
        default:
                return -1;