diff --git a/revup/shell.py b/revup/shell.py index 654bdfe..d734d68 100644 --- a/revup/shell.py +++ b/revup/shell.py @@ -69,13 +69,13 @@ async def process_stream( except asyncio.IncompleteReadError as e: line = e.partial if not line: - if isinstance(setting, int) and setting != -1: + if isinstance(setting, int) and setting not in (-1, subprocess.PIPE, subprocess.STDOUT): os.close(setting) break if setting == subprocess.PIPE: output.append(line) elif setting == subprocess.STDOUT: - sys.stdout.buffer.write(line) + logging.info(line) elif isinstance(setting, int) and setting != -1: os.write(setting, line) elif setting is None: diff --git a/revup/topic_stack.py b/revup/topic_stack.py index 335d540..a15dd5e 100644 --- a/revup/topic_stack.py +++ b/revup/topic_stack.py @@ -1039,7 +1039,7 @@ async def push_git_refs(self, uploader: str, create_local_branches: bool) -> Non self.git_ctx.remote_name, *push_targets, ] - await self.git_ctx.git(*push_args, stderr=subprocess.PIPE) + await self.git_ctx.git(*push_args, stdout=subprocess.STDOUT, stderr=subprocess.STDOUT) async def query_github(self) -> None: """