Fixed count and included progress message
This commit is contained in:
parent
dde6d9361a
commit
2fea428558
4
gl2gb.py
4
gl2gb.py
|
@ -14,7 +14,7 @@ progress.start()
|
||||||
ssh = paramiko.SSHClient()
|
ssh = paramiko.SSHClient()
|
||||||
ssh.load_system_host_keys()
|
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_HOST = 'https://gitlab.com'
|
||||||
GITLAB_TOKEN = 'PersonalAccessToken_api'
|
GITLAB_TOKEN = 'PersonalAccessToken_api'
|
||||||
GITBLIT_HOST = 'gitblit' # Change: Gitblit host address
|
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:
|
with open(f'exports/{project.path}.tgz', 'wb') as f:
|
||||||
export.download(streamed=True, action=f.write)
|
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:
|
with tarfile.open(f'exports/{project.path}.tgz', 'r:gz') as t:
|
||||||
progress.log(f'{project.name}: Extracting ./project.bundle...')
|
progress.log(f'{project.name}: Extracting ./project.bundle...')
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue