summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
authorDaniel Kutik <daniel.kutik@lavawerk.com>2023-10-23 21:16:04 +0200
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-24 19:29:57 +0000
commitb0430b5bc519c93adce2e670d3b5083086a43383 (patch)
tree7b591488be3140c803c37458798c650381edd9ea /subcmds/sync.py
parent1fd5c4bdf278daef16c75b2ac4119bafccad6279 (diff)
downloadgit-repo-b0430b5bc519c93adce2e670d3b5083086a43383.tar.gz
sync: TeeStringIO write should return int
Change-Id: I211776a493cad4b005c6e201833e9700def2feb9 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390657 Reviewed-by: Mike Frysinger <vapier@google.com> Commit-Queue: Daniel Kutik <daniel.kutik@lavawerk.com> Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com>
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index 2fea61d5..9e43df4a 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -185,9 +185,10 @@ class TeeStringIO(io.StringIO):
185 185
186 def write(self, s: str) -> int: 186 def write(self, s: str) -> int:
187 """Write to additional destination.""" 187 """Write to additional destination."""
188 super().write(s) 188 ret = super().write(s)
189 if self.io is not None: 189 if self.io is not None:
190 self.io.write(s) 190 self.io.write(s)
191 return ret
191 192
192 193
193class Sync(Command, MirrorSafeCommand): 194class Sync(Command, MirrorSafeCommand):