diff options
author | Joey Hess <joey@kitenet.net> | 2011-03-15 22:42:34 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-15 22:42:34 -0400 |
commit | 2e1cc2f8b98aaf9e01b620d557c42d5b1ae2aaa6 (patch) | |
tree | 57ad758d6a1e193a2cf9974e1d4172f500548e6f /Command/SendKey.hs | |
parent | da504f647fdbec7aa3a3c08244520de2c00898ef (diff) |
fixed dropkey, setkey, and git-annex-shell subcommands
key is now specified as the full key, no --backend needed
Diffstat (limited to 'Command/SendKey.hs')
-rw-r--r-- | Command/SendKey.hs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Command/SendKey.hs b/Command/SendKey.hs index ff269f21f..56974bda9 100644 --- a/Command/SendKey.hs +++ b/Command/SendKey.hs @@ -14,9 +14,7 @@ import System.Exit import Locations import qualified Annex import Command -import Types import Content -import qualified Backend import RsyncFile command :: [Command] @@ -26,16 +24,11 @@ command = [Command "sendkey" paramKey seek seek :: [CommandSeek] seek = [withKeys start] -start :: CommandStartString -start keyname = do - error "BROKEN FIXME!" - {- - backends <- Backend.list - let key = genKey (head backends) keyname +start :: CommandStartKey +start key = do present <- inAnnex key g <- Annex.gitRepo let file = gitAnnexLocation g key when present $ liftIO $ rsyncServerSend file liftIO exitFailure - -} |