diff options
author | Joey Hess <joey@kitenet.net> | 2012-11-27 16:29:31 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-11-27 16:29:31 -0400 |
commit | 1ebb337a82531ef15e867ff3012bce436ab05d10 (patch) | |
tree | 07e33e8871d42015f13636bc1d89359cce100170 /Remote | |
parent | 3fb0373bcca4b984101072ff5d7ea0073521fefc (diff) |
rsync: Fix bug introduced in last release that broke encrypted rsync special remotes.
Diffstat (limited to 'Remote')
-rw-r--r-- | Remote/Rsync.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Remote/Rsync.hs b/Remote/Rsync.hs index c48a9c14a..a3ad21f73 100644 --- a/Remote/Rsync.hs +++ b/Remote/Rsync.hs @@ -110,7 +110,7 @@ store o k _f p = rsyncSend o p k <=< inRepo $ gitAnnexLocation k storeEncrypted :: RsyncOpts -> (Cipher, Key) -> Key -> MeterUpdate -> Annex Bool storeEncrypted o (cipher, enck) k p = withTmp enck $ \tmp -> do src <- inRepo $ gitAnnexLocation k - liftIO $ decrypt cipher (feedFile src) $ + liftIO $ encrypt cipher (feedFile src) $ readBytes $ L.writeFile tmp rsyncSend o p enck tmp |