diff --git a/gitlib/gitlib.py b/gitlib/gitlib.py index d5b70f2..36ee7ea 100755 --- a/gitlib/gitlib.py +++ b/gitlib/gitlib.py @@ -67,11 +67,11 @@ class OgProgressPrinter(git.RemoteProgress): def update(self, op_code, cur_count, max_count=None, message=""): self.logger.debug(f"Progress: {op_code} {cur_count}/{max_count}: {message}") - status_string = "Progress: %s %d/%d: %s" % (op_code, cur_count, max_count, message) + status_string = "Progress: %s %s/%s: %s" % (op_code, cur_count, max_count, message) padded_string = status_string.rjust(self.prev_len, " ") self.prev_len = len(status_string) - print(f"\r{padded_string}", file=sys.stderr) + print(f"\r{padded_string}", file=sys.stderr, end="") def __del__(self): print("\n", file=sys.stderr)