Change the order since the update ts requires the repo to be set