Skip to content

Commit e2671c1

Browse files
gavinmakgerrit-scoped@luci-project-accounts.iam.gserviceaccount.com
authored andcommitted
progress: Ignore updates after progress ends
This addresses the occasional "..working.." message at the end of sync. Bug: 503869525 Change-Id: I489d29fa8ae588d77abb7fee5f157800d4abb368 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/574482 Commit-Queue: Gavin Mak <gavinmak@google.com> Tested-by: Gavin Mak <gavinmak@google.com> Reviewed-by: Becky Siegel <beckysiegel@google.com>
1 parent b43a20b commit e2671c1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

progress.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def update(self, inc=1, msg=None):
159159
inc: The number of items completed.
160160
msg: The message to display. If None, use the last message.
161161
"""
162+
if self._ended:
163+
return
162164
self._done += inc
163165
if msg is None:
164166
msg = self._last_msg

0 commit comments

Comments
 (0)