first pass at using new keys
It compiles. It sorta works. Several subcommands are FIXME marked and broken, because things that used to accept separate --backend and --key params need to be changed to accept just a --key that encodes all the key info, now that there is metadata in keys.
This commit is contained in:
parent
675ee89749
commit
9d49fe2c17
20 changed files with 116 additions and 123 deletions
|
@ -20,7 +20,8 @@ import qualified Remotes
|
|||
import UUID
|
||||
import Messages
|
||||
import Utility
|
||||
|
||||
import Key
|
||||
|
||||
command :: [Command]
|
||||
command = [Command "move" paramPath seek
|
||||
"move content of files to/from another repository"]
|
||||
|
@ -136,7 +137,7 @@ fromCleanup :: Git.Repo -> Bool -> Key -> CommandCleanup
|
|||
fromCleanup src True key = do
|
||||
ok <- Remotes.onRemote src (boolSystem, False) "dropkey"
|
||||
[ Params "--quiet --force"
|
||||
, Param $ "--backend=" ++ backendName key
|
||||
, Param $ "--backend=" ++ keyBackendName key
|
||||
, Param $ keyName key
|
||||
]
|
||||
-- better safe than sorry: assume the src dropped the key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue