mirror of
https://github.com/rclone/rclone.git
synced 2025-12-10 21:33:27 +00:00
bisync: fix --no-slow-hash settings on path2
Before this change, if path2 had slow hashes, and --no-slow-hash or --slow-hash-sync-only was in use, bisync was erroneously setting path1's hashtype to 'none' instead of path2's. This change fixes the issue. See https://forum.rclone.org/t/hashtype-mismatch-with-slow-hash-sync-only-in-onedrive-local-bisync/52138/2?u=nielash
This commit is contained in:
@@ -177,7 +177,7 @@ func (b *bisyncRun) setHashType(ci *fs.ConfigInfo) {
|
||||
}
|
||||
if (b.opt.Compare.NoSlowHash || b.opt.Compare.SlowHashSyncOnly) && b.fs2.Features().SlowHash {
|
||||
fs.Infoc(nil, Color(terminal.YellowFg, "Slow hash detected on Path2. Will ignore checksum due to slow-hash settings"))
|
||||
b.opt.Compare.HashType1 = hash.None
|
||||
b.opt.Compare.HashType2 = hash.None
|
||||
} else {
|
||||
b.opt.Compare.HashType2 = b.fs2.Hashes().GetOne()
|
||||
if b.opt.Compare.HashType2 != hash.None {
|
||||
|
||||
@@ -1816,6 +1816,7 @@ about _Unison_ and synchronization in general.
|
||||
## Changelog
|
||||
|
||||
### `v1.71`
|
||||
* Fixed an issue causing hash type to be set incorrectly if `path2` had slow hashes and `--no-slow-hash` or `--slow-hash-sync-only` was in use.
|
||||
* Fixed an issue causing errors when running concurrent bisync runs through the `rc`.
|
||||
|
||||
### `v1.69.1`
|
||||
|
||||
Reference in New Issue
Block a user