bugfix: Running move --to with a non-ssh remote failed.

This commit is contained in:
Joey Hess 2011-01-07 01:14:27 -04:00
parent e29d237693
commit 71a8278f9c
2 changed files with 6 additions and 2 deletions

View file

@ -249,8 +249,11 @@ copyToRemote r key
| not $ Git.repoIsUrl r = do
g <- Annex.gitRepo
let keysrc = annexLocation g key
let keydest = annexLocation r key
liftIO $ copyFile keysrc keydest
-- run copy from perspective of remote
liftIO $ do
a <- Annex.new r []
Annex.eval a $ Core.getViaTmp key $ \f ->
liftIO $ copyFile keysrc f
| Git.repoIsSsh r = do
g <- Annex.gitRepo
let keysrc = annexLocation g key

1
debian/changelog vendored
View file

@ -8,6 +8,7 @@ git-annex (0.16) UNRELEASED; urgency=low
significant problem, since the remote *did* record that it had the file.
* Also, add a general guard to detect attempts to record information
about repositories with missing UUIDs.
* bugfix: Running `move --to` with a non-ssh remote failed.
* Test suite improvements. Current top-level test coverage: 57%
-- Joey Hess <joeyh@debian.org> Tue, 04 Jan 2011 17:33:42 -0400