From 574bc9aa10a53d3b8da4cfe3e5af93a2d1b09b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Fri, 17 May 2024 20:07:16 +0200 Subject: [PATCH] Avoid guessing in switch --- lib/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git.py b/lib/git.py index a5ef56c..635924c 100644 --- a/lib/git.py +++ b/lib/git.py @@ -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(