From 1d9e04feef20f6ba915f599c30ce098e0803a7e0 Mon Sep 17 00:00:00 2001 From: Alejo Diaz Date: Wed, 13 Sep 2023 22:18:52 -0300 Subject: [PATCH] Fix removal in non-existent files --- src/filetree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filetree.rs b/src/filetree.rs index fe1c6787..c1e58a88 100644 --- a/src/filetree.rs +++ b/src/filetree.rs @@ -337,7 +337,7 @@ pub(crate) fn apply_diff( if !opts.skip_removals { for path in diff.removals.iter() { destdir - .remove_file(path) + .remove_file_optional(path) .with_context(|| format!("removing {path}"))?; } }