From c8fe2f26c682b22212dea86188498ce1b9e28ad0 Mon Sep 17 00:00:00 2001 From: ajouatom Date: Sat, 14 Feb 2026 16:21:59 +0900 Subject: [PATCH] fix.. branch checkout --- selfdrive/carrot/carrot_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/carrot/carrot_server.py b/selfdrive/carrot/carrot_server.py index d7fe1658..5645983b 100644 --- a/selfdrive/carrot/carrot_server.py +++ b/selfdrive/carrot/carrot_server.py @@ -500,7 +500,7 @@ async def api_tools(request: web.Request) -> web.Response: branch = (body.get("branch") or "").strip() if not branch: return web.json_response({"ok": False, "error": "missing branch"}, status=400) - rc, out = run(["git", "checkout", branch], cwd=REPO_DIR) + rc, out = run(["git", "checkout", "-f", branch], cwd=REPO_DIR) return web.json_response({"ok": rc == 0, "rc": rc, "out": out}) if action == "git_branch_list":