diff --git a/ofborg/src/clone.rs b/ofborg/src/clone.rs index 5e2fa46..b054f0f 100644 --- a/ofborg/src/clone.rs +++ b/ofborg/src/clone.rs @@ -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(())