dopiąć (Polish) comes from Polish piąć, from Proto-Slavic pęti, from Proto-Balto-Slavic pínˀtei, from Proto-Indo-European (s)penh₁- — to twist; to weave.
dopiąć (Polish): to button up, to fasten completely