summaryrefslogtreecommitdiff
path: root/Remotes.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-01-11 16:06:19 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-01-11 16:06:19 -0400
commit196c2fa78633aaaf9a43c8aa6a54b4144ffac3e2 (patch)
treeac46499157c587c04666ba3405b4bd73f54afed0 /Remotes.hs
parenta8ce30401dd69d1d203cfc33b791c1b4d175666e (diff)
Bugfix: `copy --to` and `move --to` forgot to stage location log changes after transferring the file to the remote repository. (Did not affect ssh remotes.)
Diffstat (limited to 'Remotes.hs')
-rw-r--r--Remotes.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Remotes.hs b/Remotes.hs
index 2c8cdfdad..a7a1db415 100644
--- a/Remotes.hs
+++ b/Remotes.hs
@@ -252,8 +252,11 @@ copyToRemote r key
-- run copy from perspective of remote
liftIO $ do
a <- Annex.new r []
- Annex.eval a $ Core.getViaTmp key $ \f ->
- liftIO $ copyFile keysrc f
+ Annex.eval a $ do
+ ok <- Core.getViaTmp key $
+ \f -> liftIO $ copyFile keysrc f
+ Annex.queueRun
+ return ok
| Git.repoIsSsh r = do
g <- Annex.gitRepo
let keysrc = annexLocation g key