1 Commits

Author SHA1 Message Date
Adam Majer
17062df04e Fix typo 2024-06-10 15:44:21 +02:00

View File

@@ -85,7 +85,7 @@ class Git:
"""Checkout into the branch HEAD"""
new_branch = False
if branch not in self.branches():
self.git_run(["switch", "-q", "--orphan", branch])
self.git_run(["branch", "-q", branch, "HEAD"])
new_branch = True
else:
ref = f"refs/heads/{branch}"
@@ -271,7 +271,7 @@ class Git:
["remote"],
stdout=subprocess.PIPE,
).stdout.decode("utf-8"):
logger.warning("Not pushing to remote because no 'origin' configured")
logging.warning("Not pushing to remote because no 'origin' configured")
return
cmd = ["push"]