This commit is contained in:
Joey Hess 2021-06-15 10:27:33 -04:00
parent effc9bf5dd
commit b3712b6047
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -68,7 +68,7 @@ startKey o afile (si, key, ai) = case fromToOptions o of
ToRemote r -> checkFailedTransferDirection ai Upload $ ifM (inAnnex key)
( Command.Move.toStart Command.Move.RemoveNever afile key ai si =<< getParsed r
, do
(numcopies, mincopies) <- getnummincopies
(numcopies, mincopies) <- getAssociatedFileNumMinCopies afile
Command.Drop.startRemote pcc afile ai si numcopies mincopies key =<< getParsed r
)
FromRemote r -> checkFailedTransferDirection ai Download $ do
@ -86,7 +86,4 @@ startKey o afile (si, key, ai) = case fromToOptions o of
, stop
)
where
getnummincopies = case afile of
AssociatedFile Nothing -> (,) <$> getNumCopies <*> getMinCopies
AssociatedFile (Just af) -> getFileNumMinCopies af
pcc = Command.Drop.PreferredContentChecked False