Skip to content

Commit

Permalink
Merge pull request #528 from xlejo/fix-removal
Browse files Browse the repository at this point in the history
Fix removal in non-existent files
  • Loading branch information
cgwalters authored Sep 21, 2023
2 parents fbe878a + 1d9e04f commit f657663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filetree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"))?;
}
}
Expand Down

0 comments on commit f657663

Please sign in to comment.