Preparing the repo for a mirror