mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
restore: Fix restoring of empty files
This commit is contained in:
parent
89651b3bd6
commit
41c9b2f5e6
@ -5,6 +5,7 @@ Breaking changes:
|
||||
- Backing up multiple sources on the command line now results in one instead of several snapshots.
|
||||
|
||||
Bugs fixed:
|
||||
- `restore` command did not restore empty files. This is fixed.
|
||||
- `config` command did save the config file compressed which violates the repo design. This is fixed.
|
||||
|
||||
New features:
|
||||
|
||||
@ -586,8 +586,8 @@ impl FileInfos {
|
||||
|
||||
match (has_unmatched, open_file.is_some()) {
|
||||
(true, true) => Ok(AddFileResult::Modify(file_pos)),
|
||||
(true, false) => Ok(AddFileResult::New(file_pos)),
|
||||
(false, _) => Ok(AddFileResult::Verified),
|
||||
(false, true) => Ok(AddFileResult::Verified),
|
||||
(_, false) => Ok(AddFileResult::New(file_pos)),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user