Skip to content

Commit 03311b0

Browse files
committed
Fix: Remove double branch
1 parent 7ca69ed commit 03311b0

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

codeclash/games/game.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,7 @@ def get_environment(self, branch_name: str | None = None) -> DockerEnvironment:
209209
if current_url.startswith("https://") and "@" not in current_url:
210210
new_url = current_url.replace("https://", f"https://{github_token}@")
211211
assert_zero_exit_code(
212-
environment.execute(
213-
f"git remote set-url origin {new_url} && "
214-
f"git fetch --all && "
215-
f"git pull && "
216-
f"git branch {branch_name} && "
217-
f"git checkout {branch_name}"
218-
)
212+
environment.execute(f"git remote set-url origin {new_url} && git fetch --all && git pull")
219213
)
220214
else:
221215
self.logger.warning("Remote origin URL is not https://, won't be able to set token and pull.")

0 commit comments

Comments
 (0)