Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2dd371408f | ||
|
|
0005ad1fd3 | ||
|
|
446978704d | ||
|
|
f24bd5b361 | ||
|
|
4d5c27cfaa | ||
|
|
d45f0be314 | ||
|
|
e1a24aff20 |
@@ -66,7 +66,7 @@ class GitRepository:
|
|||||||
def create_and_switch_branch(self, branch_name, remote_name='origin', ref_name='main'):
|
def create_and_switch_branch(self, branch_name, remote_name='origin', ref_name='main'):
|
||||||
"""Create a new branch in the repository with authentication."""
|
"""Create a new branch in the repository with authentication."""
|
||||||
try:
|
try:
|
||||||
pring(f"Creating Branch {title}")
|
print(f"Creating Branch {branch_name}")
|
||||||
# Use the same remote and ref as before
|
# Use the same remote and ref as before
|
||||||
self.repo.git.branch(branch_name)
|
self.repo.git.branch(branch_name)
|
||||||
except GitCommandError:
|
except GitCommandError:
|
||||||
|
|||||||
Reference in New Issue
Block a user