clone: also cleanup checkout with git gc
This commit is contained in:
parent
bd6b7f8846
commit
f6159fbdd2
|
@ -147,6 +147,13 @@ pub trait GitClonable {
|
|||
.stdout(Stdio::null())
|
||||
.status()?;
|
||||
|
||||
debug!("git gc");
|
||||
Command::new("git")
|
||||
.arg("gc")
|
||||
.current_dir(self.clone_to())
|
||||
.stdout(Stdio::null())
|
||||
.status()?;
|
||||
|
||||
lock.unlock();
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue