Push branch to origin.
(branch_name: str)
| 397 | |
| 398 | |
| 399 | def push_branch(branch_name: str) -> bool: |
| 400 | """Push branch to origin.""" |
| 401 | code, _, err = run_git(["push", "origin", branch_name]) |
| 402 | if code != 0: |
| 403 | print(f"ERROR: Failed to push branch: {err}") |
| 404 | return False |
| 405 | return True |
| 406 | |
| 407 | |
| 408 | # --------------------------------------------------------------------------- |
no test coverage detected