fix: Remove extra newlines in error message output

- Modified error message in push_changes() to remove extra newlines
- Improved consistency in error message formatting
- Simplified stderr output for failed branch determination
This commit is contained in:
bobo.yang 2025-03-07 11:03:58 +08:00
parent c307e1ae43
commit e36da6da6c

View File

@ -385,7 +385,7 @@ def push_changes():
try:
current_branch = get_current_branch()
if not current_branch:
print("Could not determine current branch. Push failed.", end="\n\n", file=sys.stderr, flush=True)
print("Could not determine current branch. Push failed.", file=sys.stderr, flush=True)
return False
print(f"Pushing changes to origin/{current_branch}...", end="\n\n", flush=True)