refactor: Modify git push to stream output directly to terminal

This commit is contained in:
Paul Gauthier (aider) 2025-03-11 09:25:44 -07:00
parent 703cb8849d
commit 1b81fb0fdf

View file

@ -66,9 +66,7 @@ def check_main_branch_up_to_date():
# Function to check if we can push to the origin repository # Function to check if we can push to the origin repository
def check_ok_to_push(): def check_ok_to_push():
print("Checking if it's ok to push to origin repository...") print("Checking if it's ok to push to origin repository...")
result = subprocess.run(["git", "push", "--dry-run", "origin"], capture_output=True, text=True) result = subprocess.run(["git", "push", "--dry-run", "origin"])
print(result.stdout)
print(result.stderr)
if result.returncode != 0: if result.returncode != 0:
print("Error: Cannot push to origin repository.") print("Error: Cannot push to origin repository.")