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>
This commit is contained in:
Gavin Mak
2026-04-17 20:31:33 +00:00
committed by gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com
parent b43a20b859
commit e2671c184e
+2
View File
@@ -159,6 +159,8 @@ class Progress:
inc: The number of items completed.
msg: The message to display. If None, use the last message.
"""
if self._ended:
return
self._done += inc
if msg is None:
msg = self._last_msg