from pathlib import Path
import subprocess,sys
root=Path(sys.argv[1]).resolve()
for index in range(1,181):
    path=root/'repos'/f'project-{index:03d}'
    path.mkdir(parents=True,exist_ok=True)
    subprocess.run(['git','init','-q',str(path)],check=True)
    subprocess.run(['git','-C',str(path),'remote','add','origin',f'https://gitlab.com/demo/project-{index:03d}.git'],check=True)
