diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-10-06 17:29:44 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-10-06 17:29:44 -0400 |
commit | 4233e81ef174d7891a8134656a67a6d40ea09ef9 (patch) | |
tree | d03021cbc2109db805de60220dfff7272719122a /Command | |
parent | 9e2cea9f7a3fdea641371cd59f313a4cc6dc1630 (diff) |
copy --auto was checking the wrong repo's preferred content. (--from was checking what --to should, and vice-versa.) Fixed this bug, which was introduced in version 5.20150727.
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Copy.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Command/Copy.hs b/Command/Copy.hs index 77711f05b..1711b0c63 100644 --- a/Command/Copy.hs +++ b/Command/Copy.hs @@ -52,7 +52,7 @@ start o file key = stopUnless shouldCopy $ | autoMode o = want <||> numCopiesCheck file key (<) | otherwise = return True want = case Command.Move.fromToOptions (moveOptions o) of - ToRemote _ -> - wantGet False (Just key) (Just file) - FromRemote dest -> (Remote.uuid <$> getParsed dest) >>= + ToRemote dest -> (Remote.uuid <$> getParsed dest) >>= wantSend False (Just key) (Just file) + FromRemote _ -> + wantGet False (Just key) (Just file) |