1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-11 13:53:16 +00:00

Retention policy erroneously apply to snapshots without the specified tags

This commit is contained in:
Gilbert Chen
2018-02-10 21:33:01 -05:00
parent 52fd553bb9
commit e07226bd62
2 changed files with 59 additions and 23 deletions

View File

@@ -1865,7 +1865,7 @@ func (manager *SnapshotManager) PruneSnapshots(selfID string, snapshotID string,
}
if len(tagMap) > 0 {
if _, found := tagMap[snapshot.Tag]; found {
if _, found := tagMap[snapshot.Tag]; !found {
continue
}
}