backup: fix dir stats

This commit is contained in:
Alexander Weiss 2023-04-22 21:02:42 +02:00
parent 88410511b1
commit 797126277c
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Breaking changes:
Bugs fixed:
- restore: Warm-up options given by the command line didn't work. This has been fixed.
- backup showed 1 dir as changed when backing up without parent. This has been fixed.
New features:
- prune: Added option --repack-all

View File

@ -129,7 +129,7 @@ impl<BE: DecryptWriteBackend, I: IndexedBackend> TreeArchiver<BE, I> {
pub fn finalize(mut self, parent_tree: Option<Id>) -> Result<(Id, SnapshotSummary)> {
let parent = match parent_tree {
None => ParentResult::NotMatched,
None => ParentResult::NotFound,
Some(id) => ParentResult::Matched(id),
};
let id = self.backup_tree(&PathBuf::new(), parent)?;