clone: force checkout
cole-h > Somehow, some evaluators have had dirty git checkouts, causing them to continually crash.
This commit is contained in:
parent
6daa9f8f94
commit
0260aa1cea
|
@ -148,6 +148,8 @@ pub trait GitClonable {
|
||||||
debug!("git checkout {:?}", git_ref);
|
debug!("git checkout {:?}", git_ref);
|
||||||
let result = Command::new("git")
|
let result = Command::new("git")
|
||||||
.arg("checkout")
|
.arg("checkout")
|
||||||
|
// we don't care if its dirty
|
||||||
|
.arg("--force")
|
||||||
.arg(git_ref)
|
.arg(git_ref)
|
||||||
.current_dir(self.clone_to())
|
.current_dir(self.clone_to())
|
||||||
.stdout(Stdio::null())
|
.stdout(Stdio::null())
|
||||||
|
|
Loading…
Reference in a new issue