diff options
author | Joey Hess <joey@kitenet.net> | 2011-01-04 17:45:27 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-01-04 17:45:27 -0400 |
commit | f1b747e6d9fae2b365f65fd43c6295da503218bd (patch) | |
tree | 1400863ef9a3f2bb8964e1b3f23b3bc2fdd12c8b /Command | |
parent | a857e1f4ee247cae0cf0ce6696a9015460d117de (diff) |
bugfix: Running `move --to` with a remote whose UUID was not yet known
* bugfix: Running `move --to` with a remote whose UUID was not yet known
could result in git-annex not recording on the local side where the
file was moved to. This could not result in data loss, or even a
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.
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Move.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Command/Move.hs b/Command/Move.hs index fa847e6ba..0077618f8 100644 --- a/Command/Move.hs +++ b/Command/Move.hs @@ -75,6 +75,7 @@ toStart move file = isAnnexed file $ \(key, _) -> do return $ Just $ toPerform move key toPerform :: Bool -> Key -> CommandPerform toPerform move key = do + Remotes.readConfigs -- checking the remote is expensive, so not done in the start step remote <- Remotes.commandLineRemote isthere <- Remotes.inAnnex remote key |