fix --ignore-checksum
This commit is contained in:
parent
69a15ae173
commit
b3a526814e
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ func Copy(f Fs, dst Object, remote string, src Object) (err error) {
|
|||
if err != nil {
|
||||
Stats.Error()
|
||||
Errorf(dst, "Failed to read hash: %v", err)
|
||||
} else if !Config.IgnoreSize && !HashEquals(srcSum, dstSum) {
|
||||
} else if !Config.IgnoreChecksum && !HashEquals(srcSum, dstSum) {
|
||||
Stats.Error()
|
||||
err = errors.Errorf("corrupted on transfer: %v hash differ %q vs %q", hashType, srcSum, dstSum)
|
||||
Errorf(dst, "%v", err)
|
||||
|
|
Loading…
Reference in a new issue