The firs time, it works great, but after a while I keep getting errors. A workaround for now is to always clear the temp directory first, see GeertvanHorrik/RepositoryTemplate@c24a5b6 for an example.
I will try to find the cause and create a PR with a fix. Note that I updated from 3.2 => 5.0, so stuff might have been broken (already had to do this workaround for 4.x).