Avoid guessing in switch

This commit is contained in:
Dirk Müller 2024-05-17 20:07:16 +02:00
parent 0414b33206
commit 574bc9aa10
No known key found for this signature in database

View File

@ -90,7 +90,7 @@ class Git:
else:
ref = f"refs/heads/{branch}"
if (self.path / ".git" / ref).exists():
self.git_run(["switch", "-q", branch])
self.git_run(["switch", "--no-guess", "-q", branch])
return new_branch
def commit(