Added ensure_repos support repos