From 3a8300110aba4222e016cbdb838645bb474f2326 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 17 Aug 2026 17:54:27 +0200 Subject: [PATCH] fix `clean` trying to remove other cached stuff --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d7b14c5..7107908 100644 --- a/src/main.rs +++ b/src/main.rs @@ -88,7 +88,7 @@ async fn main() -> Result { for cache_dir in config.work_dir.read_dir().into_diagnostic()? { let cache_dir = cache_dir.into_diagnostic()?; - if let Some(id) = cache_dir.file_name().to_str() { + if let Some(id) = cache_dir.file_name().to_str() && id.starts_with("haze-") { if !retain.iter().any(|cloud| cloud.id == id) { let path = cache_dir.path(); // By default, the worktrees live within the work dir, we do not want to delete it here.