Init the repo from a old repo