diff options
author | Joey Hess <joey@kitenet.net> | 2012-07-10 11:53:45 -0600 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-07-10 11:53:45 -0600 |
commit | aa558f0b00ef012f6c7532d8451de3fb1ed1eb9b (patch) | |
tree | 5a296752b628ce7ae926fcd3756a48eccf3ce363 /Command/Get.hs | |
parent | 619297e1a7ba89f50fa5be9d7dfdfe5a9510129a (diff) |
copy, drop: Avoid checking numcopies attribute unnecessarily
Diffstat (limited to 'Command/Get.hs')
-rw-r--r-- | Command/Get.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Get.hs b/Command/Get.hs index a5901ba66..95a7040bb 100644 --- a/Command/Get.hs +++ b/Command/Get.hs @@ -24,7 +24,7 @@ seek = [withField Command.Move.fromOption Remote.byName $ \from -> start :: Maybe Remote -> FilePath -> (Key, Backend) -> CommandStart start from file (key, _) = stopUnless (not <$> inAnnex key) $ - autoCopies file key (<) $ \_numcopies -> + autoCopies file key (<) $ case from of Nothing -> go $ perform key file Just src -> |