Just copy the files instead of cloning the repo again (this way it even works on branches tests, I think)