summaryrefslogtreecommitdiff
path: root/Command/Drop.hs
diff options
context:
space:
mode:
authorGravatar Richard Hartmann <richih@debian.org>2014-01-21 00:58:15 +0100
committerGravatar Richard Hartmann <richih@debian.org>2014-01-21 00:58:15 +0100
commit3b5008704fe9f369c40b172aefb69f956e140bec (patch)
tree83c8c8514e9afdba7a06a2306f7c81b2bd932a10 /Command/Drop.hs
parent5025588ab071106ce9563f93a9aea3fb2d032d91 (diff)
parent4140cd6b4d6c0adb899262ca7843589a8b1b2433 (diff)
Merge branch 'master' of git://git-annex.branchable.com
Diffstat (limited to 'Command/Drop.hs')
-rw-r--r--Command/Drop.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Command/Drop.hs b/Command/Drop.hs
index 4c7128603..97208eff7 100644
--- a/Command/Drop.hs
+++ b/Command/Drop.hs
@@ -27,9 +27,10 @@ def = [withOptions [fromOption] $ command "drop" paramPaths seek
fromOption :: Option
fromOption = Option.field ['f'] "from" paramRemote "drop content from a remote"
-seek :: [CommandSeek]
-seek = [withField fromOption Remote.byNameWithUUID $ \from ->
- withFilesInGit $ whenAnnexed $ start from]
+seek :: CommandSeek
+seek ps = do
+ from <- getOptionField fromOption Remote.byNameWithUUID
+ withFilesInGit (whenAnnexed $ start from) ps
start :: Maybe Remote -> FilePath -> (Key, Backend) -> CommandStart
start from file (key, _) = checkDropAuto from file key $ \numcopies ->
@@ -138,7 +139,7 @@ notEnoughCopies key need have skip bad = do
return False
where
unsafe = showNote "unsafe"
- hint = showLongNote "(Use --force to override this check, or adjust annex.numcopies.)"
+ hint = showLongNote "(Use --force to override this check, or adjust numcopies.)"
{- In auto mode, only runs the action if there are enough
- copies on other semitrusted repositories.