summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-09-29 16:30:43 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-09-29 16:30:43 -0400
commita95a32c60d352e253b808c2b6c7cbbbc2ce9123b (patch)
tree27ab06b46272ea063435c35ea2675fcf86f05cf7 /Command
parentd10f4a97c05433d3cb9d77f6f6c2100c6d96b06d (diff)
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.
Diffstat (limited to 'Command')
-rw-r--r--Command/Move.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Move.hs b/Command/Move.hs
index 74aa430d3..c8867e391 100644
--- a/Command/Move.hs
+++ b/Command/Move.hs
@@ -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)