X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/3603dde2e015c340cac1a2f1a0f3d35d44c51c98..1b48018c3d40a9f70ac98aa3d3112fc5d8cb2201:/pinch.py diff --git a/pinch.py b/pinch.py index 003ee70..5d93c26 100644 --- a/pinch.py +++ b/pinch.py @@ -83,7 +83,7 @@ class Verification: def result(self, r: bool) -> None: message, color = {True: ('OK ', 92), False: ('FAIL', 91)}[r] length = len(message) - cols = shutil.get_terminal_size().columns + cols = shutil.get_terminal_size().columns or 80 pad = (cols - (self.line_length + length)) % cols print(' ' * pad + self._color(message, color), file=sys.stderr) self.line_length = 0 @@ -478,7 +478,7 @@ def git_revision_name(v: Verification, channel: Channel) -> str: process = subprocess.run(['git', '-C', git_cachedir(channel.git_repo), - 'lo', + 'log', '-n1', '--format=%ct-%h', '--abbrev=11',