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.)

This commit is contained in:
Joey Hess 2011-01-11 16:06:19 -04:00
parent a8ce30401d
commit 196c2fa786
2 changed files with 13 additions and 2 deletions

View file

@ -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

8
debian/changelog vendored
View file

@ -1,3 +1,11 @@
git-annex (0.18) UNRELEASED; urgency=low
* 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.)
-- Joey Hess <joeyh@debian.org> Tue, 11 Jan 2011 16:05:25 -0400
git-annex (0.17) unstable; urgency=low
* unannex: Now skips files whose content is not present, rather than