Skip to content

Commit

Permalink
fix(friendshipper): set reflog expiry to 30 days
Browse files Browse the repository at this point in the history
  • Loading branch information
rudoi committed Oct 17, 2024
1 parent cc1ff13 commit 6210f57
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/src/clients/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,13 @@ impl Git {

pub async fn expire_reflog(&self) -> anyhow::Result<()> {
self.run(
&["reflog", "expire", "--expire=now", "--all"],
&[
"reflog",
"expire",
"--expire-unreachable=30.days",
"--expire=30.days",
"--all",
],
Opts::default(),
)
.await
Expand Down

0 comments on commit 6210f57

Please sign in to comment.