Skip to content

Commit

Permalink
clone: also cleanup checkout with git gc
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-h committed Feb 2, 2024
1 parent bd6b7f8 commit f6159fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ofborg/src/clone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down

0 comments on commit f6159fb

Please sign in to comment.