Bugfix: copy --to --fast never really copied, fixed.
This commit is contained in:
parent
a6af9f1530
commit
ed7fc4fce9
2 changed files with 5 additions and 2 deletions
|
@ -89,8 +89,10 @@ toPerform dest move key = do
|
||||||
-- and an explicit check is not done, when copying. When moving,
|
-- and an explicit check is not done, when copying. When moving,
|
||||||
-- it has to be done, to avoid inaverdent data loss.
|
-- it has to be done, to avoid inaverdent data loss.
|
||||||
fast <- Annex.getState Annex.fast
|
fast <- Annex.getState Annex.fast
|
||||||
isthere <- if fast && not move
|
isthere <- if fast && not move && not (Remote.hasKeyCheap dest)
|
||||||
then return $ Right True
|
then do
|
||||||
|
(remotes, _) <- Remote.keyPossibilities key
|
||||||
|
return $ Right $ dest `elem` remotes
|
||||||
else Remote.hasKey dest key
|
else Remote.hasKey dest key
|
||||||
case isthere of
|
case isthere of
|
||||||
Left err -> do
|
Left err -> do
|
||||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -8,6 +8,7 @@ git-annex (0.20110329) UNRELEASED; urgency=low
|
||||||
have proper permissions.
|
have proper permissions.
|
||||||
* Added a special type of remote called a directory remote, which
|
* Added a special type of remote called a directory remote, which
|
||||||
simply stores files in an arbitrary local directory.
|
simply stores files in an arbitrary local directory.
|
||||||
|
* Bugfix: copy --to --fast never really copied, fixed.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Sat, 26 Mar 2011 14:36:16 -0400
|
-- Joey Hess <joeyh@debian.org> Sat, 26 Mar 2011 14:36:16 -0400
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue