move: Fix a regression in the last release that made move --to not honor numcopies settings

This commit was sponsored by Svenne Krap on Patreon.
This commit is contained in:
Joey Hess 2020-11-13 14:19:32 -04:00
parent 98d1cbd1ee
commit a30030c4a6
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 20 additions and 1 deletions

View file

@ -151,7 +151,7 @@ toPerform dest removewhen key afile fastcheck isthere = do
when fastcheck $
warning "This could have failed because --fast is enabled."
stop
Right True -> logMove srcuuid destuuid False key $ \deststartedwithcopy ->
Right True -> logMove srcuuid destuuid True key $ \deststartedwithcopy ->
finish deststartedwithcopy $
unlessM (expectedPresent dest key) $
Remote.logStatus dest key InfoPresent