summaryrefslogtreecommitdiff
path: root/Command/Move.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Move.hs')
-rw-r--r--Command/Move.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Command/Move.hs b/Command/Move.hs
index 3ac5a7ab2..951695d66 100644
--- a/Command/Move.hs
+++ b/Command/Move.hs
@@ -89,8 +89,10 @@ toPerform dest move key = do
-- and an explicit check is not done, when copying. When moving,
-- it has to be done, to avoid inaverdent data loss.
fast <- Annex.getState Annex.fast
- isthere <- if fast && not move
- then return $ Right True
+ isthere <- if fast && not move && not (Remote.hasKeyCheap dest)
+ then do
+ (remotes, _) <- Remote.keyPossibilities key
+ return $ Right $ dest `elem` remotes
else Remote.hasKey dest key
case isthere of
Left err -> do