copy, move: Behave same with --fast when sending to remotes located on a local disk as when sending to other remotes.

Let --fast override use of hasKey even when hasKeyCheap.
This commit is contained in:
Joey Hess 2017-09-29 16:30:43 -04:00
parent 799a432b68
commit f403c23bc6
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 3 additions and 1 deletions

View file

@ -109,7 +109,7 @@ toStart move afile key ai dest = do
toStart' :: Remote -> Bool -> AssociatedFile -> Key -> ActionItem -> CommandStart
toStart' dest move afile key ai = do
fast <- Annex.getState Annex.fast
if fast && not move && not (Remote.hasKeyCheap dest)
if fast && not move
then ifM (expectedPresent dest key)
( stop
, go True (pure $ Right False)