helper to download temp repo.