clone: also cleanup checkout with git gc

This commit is contained in:
Cole Helbling 2024-01-16 14:22:21 -08:00
parent bd6b7f8846
commit f6159fbdd2

View file

@ -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(())