1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 16:54:08 +02:00

fix clean trying to remove other cached stuff

This commit is contained in:
Robin Appelman 2026-08-17 17:54:27 +02:00
commit 3a8300110a

View file

@ -88,7 +88,7 @@ async fn main() -> Result<ExitCode> {
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.