Skip to content

Commit

Permalink
git: Don't swallow all push output
Browse files Browse the repository at this point in the history
Topic: outp
  • Loading branch information
jerry-skydio committed Dec 28, 2024
1 parent c7b92e8 commit 8da330e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion revup/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ 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:
Expand Down
2 changes: 1 addition & 1 deletion revup/topic_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down

0 comments on commit 8da330e

Please sign in to comment.