mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
refactor: Modify git push to stream output directly to terminal
This commit is contained in:
parent
703cb8849d
commit
1b81fb0fdf
1 changed files with 1 additions and 3 deletions
|
@ -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.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue