clone: more forcefully clean clones of untracked files and empty dirs
This commit is contained in:
parent
cda5aa2ac7
commit
653829c95e
|
@ -137,6 +137,16 @@ pub trait GitClonable {
|
||||||
.stdout(Stdio::null())
|
.stdout(Stdio::null())
|
||||||
.status()?;
|
.status()?;
|
||||||
|
|
||||||
|
debug!("git clean -x -d --force");
|
||||||
|
Command::new("git")
|
||||||
|
.arg("clean")
|
||||||
|
.arg("-x")
|
||||||
|
.arg("-d")
|
||||||
|
.arg("--force")
|
||||||
|
.current_dir(self.clone_to())
|
||||||
|
.stdout(Stdio::null())
|
||||||
|
.status()?;
|
||||||
|
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue