clone: force checkout

cole-h > Somehow, some evaluators have had dirty git checkouts, causing them to continually crash.
This commit is contained in:
Artturin 2022-12-02 22:38:38 +02:00 committed by Cole Helbling
parent 6daa9f8f94
commit 0260aa1cea

View file

@ -148,6 +148,8 @@ pub trait GitClonable {
debug!("git checkout {:?}", git_ref);
let result = Command::new("git")
.arg("checkout")
// we don't care if its dirty
.arg("--force")
.arg(git_ref)
.current_dir(self.clone_to())
.stdout(Stdio::null())