mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
refactor: Rename check_push_access
to check_ok_to_push
This commit is contained in:
parent
748099a324
commit
3d5c5f8054
1 changed files with 4 additions and 4 deletions
|
@ -64,8 +64,8 @@ def check_main_branch_up_to_date():
|
|||
|
||||
|
||||
# Function to check if we can push to the origin repository
|
||||
def check_push_access():
|
||||
print("Checking push access to origin repository...")
|
||||
def check_ok_to_push():
|
||||
print("Checking if it's ok to push to origin repository...")
|
||||
result = subprocess.run(["git", "push", "--dry-run", "origin"], capture_output=True, text=True)
|
||||
print(result.stdout)
|
||||
print(result.stderr)
|
||||
|
@ -74,7 +74,7 @@ def check_push_access():
|
|||
print("Error: Cannot push to origin repository.")
|
||||
sys.exit(1)
|
||||
|
||||
print("Push access to origin repository confirmed.")
|
||||
print("Push to origin repository is possible.")
|
||||
|
||||
|
||||
def main():
|
||||
|
@ -91,7 +91,7 @@ def main():
|
|||
check_branch()
|
||||
check_working_directory_clean()
|
||||
check_main_branch_up_to_date()
|
||||
check_push_access()
|
||||
check_ok_to_push()
|
||||
|
||||
new_version_str = args.new_version
|
||||
if not re.match(r"^\d+\.\d+\.\d+$", new_version_str):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue