summaryrefslogtreecommitdiff
path: root/Command/Drop.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-10 11:53:45 -0600
committerGravatar Joey Hess <joey@kitenet.net>2012-07-10 11:53:45 -0600
commitaa558f0b00ef012f6c7532d8451de3fb1ed1eb9b (patch)
tree5a296752b628ce7ae926fcd3756a48eccf3ce363 /Command/Drop.hs
parent619297e1a7ba89f50fa5be9d7dfdfe5a9510129a (diff)
copy, drop: Avoid checking numcopies attribute unnecessarily
Diffstat (limited to 'Command/Drop.hs')
-rw-r--r--Command/Drop.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Drop.hs b/Command/Drop.hs
index 28a52d626..ddf44ab82 100644
--- a/Command/Drop.hs
+++ b/Command/Drop.hs
@@ -30,7 +30,7 @@ seek = [withField fromOption Remote.byName $ \from ->
withFilesInGit $ whenAnnexed $ start from]
start :: Maybe Remote -> FilePath -> (Key, Backend) -> CommandStart
-start from file (key, _) = autoCopies file key (>) $ \numcopies ->
+start from file (key, _) = autoCopiesWith file key (>) $ \numcopies ->
case from of
Nothing -> startLocal file numcopies key
Just remote -> do