sync: log an error that --track-renames doesn't work with sync or move
Fixes #2008
This commit is contained in:
parent
4924ac2f17
commit
5bf639048f
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,10 @@ func newSyncCopyMove(fdst, fsrc fs.Fs, deleteMode fs.DeleteMode, DoMove bool, de
|
||||||
fs.Errorf(fdst, "Ignoring --track-renames as the source and destination do not have a common hash")
|
fs.Errorf(fdst, "Ignoring --track-renames as the source and destination do not have a common hash")
|
||||||
s.trackRenames = false
|
s.trackRenames = false
|
||||||
}
|
}
|
||||||
|
if s.deleteMode == fs.DeleteModeOff {
|
||||||
|
fs.Errorf(fdst, "Ignoring --track-renames as it doesn't work with copy or move, only sync")
|
||||||
|
s.trackRenames = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if s.trackRenames {
|
if s.trackRenames {
|
||||||
// track renames needs delete after
|
// track renames needs delete after
|
||||||
|
|
Loading…
Reference in a new issue