summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-07-14 13:32:20 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-07-14 13:32:20 +0200
commit06c31461d74b10ed6fa01498fd9e2e390ad5395c (patch)
treee89ad9f485f9e58f7c47ba01b53adee81d88a3ca /src
parent755e28d044aaff9a8aa0fa4700105564726ec33d (diff)
Add cleaning up stale objects to the housekeeping task
Diffstat (limited to 'src')
-rw-r--r--src/git.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/git.rs b/src/git.rs
index 76ff326..9fa3e78 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -241,6 +241,7 @@ pub fn housekeeping(directory: &Path) -> Result<(), ShackleError> {
Command::new("git")
.arg("gc")
+ .arg("--prune=now")
.current_dir(directory)
.spawn()?
.wait()?;