Create needed directories

This commit is contained in:
jpk 2020-12-01 09:04:51 +01:00
parent 494a13e82f
commit dde6d9361a
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ GITBLIT_URI = f'ssh://{GITBLIT_USER}@{GITBLIT_HOST}:{GITBLIT_PORT}'
gl = gitlab.Gitlab(GITLAB_HOST, private_token=GITLAB_TOKEN)
ssh.connect(GITBLIT_HOST, port=GITBLIT_PORT)
os.makedirs('./exports', exist_ok=True)
os.makedirs('./repos', exist_ok=True)
progress.log('Fetching project list...')
for project in progress.track(gl.projects.list(all=True)):
if os.path.exists(f'repos/{project.path}.done'):