Skip to content

Commit 9598077

Browse files
committed
Fix: Create branch if it doesn't exist
1 parent 5e56be9 commit 9598077

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

codeclash/games/game.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ def get_environment(self, branch_name: str | None = None) -> DockerEnvironment:
212212
environment.execute(
213213
f"git remote set-url origin {new_url} && "
214214
f"git fetch --all && "
215+
f"git branch {branch_name} && "
215216
f"git checkout {branch_name} && "
216217
f"git pull origin"
217218
)

0 commit comments

Comments
 (0)