From 2fea428558e216d3963b277ce6e3fa6393d08d8e Mon Sep 17 00:00:00 2001 From: Julian Knauer Date: Tue, 1 Dec 2020 09:05:26 +0100 Subject: [PATCH] Fixed count and included progress message --- gl2gb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gl2gb.py b/gl2gb.py index c0c0698..e35254f 100644 --- a/gl2gb.py +++ b/gl2gb.py @@ -14,7 +14,7 @@ progress.start() ssh = paramiko.SSHClient() ssh.load_system_host_keys() -# TODO: Change the next five lines to match your needs. +# TODO: Change the next six lines to match your needs. GITLAB_HOST = 'https://gitlab.com' GITLAB_TOKEN = 'PersonalAccessToken_api' GITBLIT_HOST = 'gitblit' # Change: Gitblit host address @@ -48,7 +48,7 @@ for project in progress.track(gl.projects.list(all=True)): with open(f'exports/{project.path}.tgz', 'wb') as f: export.download(streamed=True, action=f.write) - # progress.log(f'Preparing {project.name} for re-import') + progress.log(f'Preparing {project.name} for re-import') with tarfile.open(f'exports/{project.path}.tgz', 'r:gz') as t: progress.log(f'{project.name}: Extracting ./project.bundle...') try: