add back inAnnex check for drop here

Needed again after last commit removed it from startLocal again.
This commit is contained in:
Joey Hess 2020-07-25 18:17:33 -04:00
parent cb0b0b39db
commit f5e65d680b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -16,6 +16,7 @@ import qualified Remote
import qualified Command.Drop import qualified Command.Drop
import Command import Command
import Annex.Wanted import Annex.Wanted
import Annex.Content
import Annex.SpecialRemote.Config import Annex.SpecialRemote.Config
import qualified Database.Keys import qualified Database.Keys
import Git.FilePath import Git.FilePath
@ -118,6 +119,7 @@ handleDropsFrom locs rs reason fromhere key afile preverified runner = do
) )
dropl fs n = checkdrop fs n Nothing $ \numcopies -> dropl fs n = checkdrop fs n Nothing $ \numcopies ->
stopUnless (inAnnex key) $
Command.Drop.startLocal afile ai numcopies key preverified Command.Drop.startLocal afile ai numcopies key preverified
dropr fs r n = checkdrop fs n (Just $ Remote.uuid r) $ \numcopies -> dropr fs r n = checkdrop fs n (Just $ Remote.uuid r) $ \numcopies ->