From 03311b01d58d256fca598ce1f947fe8d7399fc63 Mon Sep 17 00:00:00 2001 From: Kilian Lieret Date: Sat, 1 Nov 2025 13:39:50 -0400 Subject: [PATCH] Fix: Remove double branch --- codeclash/games/game.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/codeclash/games/game.py b/codeclash/games/game.py index 7e2a6ca0..4a002c42 100644 --- a/codeclash/games/game.py +++ b/codeclash/games/game.py @@ -209,13 +209,7 @@ def get_environment(self, branch_name: str | None = None) -> DockerEnvironment: if current_url.startswith("https://") and "@" not in current_url: new_url = current_url.replace("https://", f"https://{github_token}@") assert_zero_exit_code( - environment.execute( - f"git remote set-url origin {new_url} && " - f"git fetch --all && " - f"git pull && " - f"git branch {branch_name} && " - f"git checkout {branch_name}" - ) + environment.execute(f"git remote set-url origin {new_url} && git fetch --all && git pull") ) else: self.logger.warning("Remote origin URL is not https://, won't be able to set token and pull.")