merge: Print stdout and stderr from git push only if it exists

This commit is contained in:
bbhtt
2025-06-08 07:43:20 +05:30
parent a760da794e
commit bc686e06fa
+5 -2
View File
@@ -253,8 +253,11 @@ def main():
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
print(ret.stdout)
print(ret.stderr)
if ret.stdout:
print(f"Git push stdout:\n{ret.stdout.decode().strip()}")
if ret.stderr:
print(f"Git push stderr:\n{ret.stderr.decode().strip()}")
repo.remove_from_collaborators("flathubbot")
print("Setting protected branches")