From 6210f5722c50ee928149ba7be8c1d799a684b1f6 Mon Sep 17 00:00:00 2001 From: Andrew Rudoi Date: Thu, 17 Oct 2024 13:22:18 -0700 Subject: [PATCH] fix(friendshipper): set reflog expiry to 30 days --- core/src/clients/git.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/clients/git.rs b/core/src/clients/git.rs index de4b93f..6f10c6f 100644 --- a/core/src/clients/git.rs +++ b/core/src/clients/git.rs @@ -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