Update sync progress

repo sync progress bar is misleading. Many bug reports mentioned that
repo is stuck at the repo that is currently displayed in the progress
bar. Repo sync actually shows what repository is the last processed.
This change makes that obvious.

Change-Id: I962bf0bc65af7ac0ed98db86e9144f07d9e1f96f
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/357134
Reviewed-by: Joanna Wang <jojwang@google.com>
Tested-by: Josip Sokcevic <sokcevic@google.com>
This commit is contained in:
Josip Sokcevic 2023-02-01 14:51:52 -08:00
parent 7f44d366d0
commit dccf38e34f

View File

@ -544,7 +544,7 @@ later is required to fix a server side protocol bug.
ret = False ret = False
else: else:
fetched.add(project.gitdir) fetched.add(project.gitdir)
pm.update(msg=project.name) pm.update(msg=f'Last synced: {project.name}')
if not ret and opt.fail_fast: if not ret and opt.fail_fast:
break break
return ret return ret