Skip to content

Commit 40ff004

Browse files
Checkout main branch after game is ran
1 parent 3e6f861 commit 40ff004

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/game.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ pub fn run(cfg: &Config) {
5858

5959
git::restore(&cfg.game_repo_path)
6060
.expect("Failed to restore repository using git");
61+
62+
git::checkout("main")
63+
.expect("Failed to checkout to main branch")
6164
}
6265

6366
fn copy_dir_all(from: &str, to: &str) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {

0 commit comments

Comments
 (0)