mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-18 09:13:17 +00:00
Don't compare hashes of empty files in the diff command
Empty files may or may not have a hash depending if the -hash option is used during backup.
This commit is contained in:
@@ -1481,9 +1481,13 @@ func (manager *SnapshotManager) Diff(top string, snapshotID string, revisions []
|
|||||||
} else {
|
} else {
|
||||||
same = right.IsSameAs(left)
|
same = right.IsSameAs(left)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if left.Size == 0 && right.Size == 0 {
|
||||||
|
same = true
|
||||||
} else {
|
} else {
|
||||||
same = left.Hash == right.Hash
|
same = left.Hash == right.Hash
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if !same {
|
if !same {
|
||||||
LOG_INFO("SNAPSHOT_DIFF", " %s", left.String(maxSizeDigits))
|
LOG_INFO("SNAPSHOT_DIFF", " %s", left.String(maxSizeDigits))
|
||||||
|
|||||||
Reference in New Issue
Block a user