Michal, thats a biggie. I would just pull it out & placed it in a larger pot. Please don't over disturb the roots too much although figs are resilent. Judging from the size of the pot relative to tree size, your newly acquired tree will be very root bound. The main reason to put it into a larger pot is to ensure the roots are not cooked/overheated by the summer sun as it is root bound & would not retained moisture/nutrients too well. Then in late winter or early spring, root prune the tree. Take cuttings in early Fall to ensure spares or better still air layer some spares now.