implement lockContent for ssh remotes

This commit is contained in:
Joey Hess 2015-10-09 16:55:41 -04:00
parent 6d4f741d5f
commit 3b89d5a20c
Failed to extract signature
5 changed files with 52 additions and 10 deletions

View file

@ -11,6 +11,7 @@ import Common.Annex
import Command
import Annex.Content
import Types.Key
import Remote.Helper.Ssh (contentLockedMarker)
cmd :: Command
cmd = noCommit $
@ -36,7 +37,7 @@ start [ks] = do
k = fromMaybe (error "bad key") (file2key ks)
locksuccess = ifM (inAnnex k)
( liftIO $ do
putStrLn "OK"
putStrLn contentLockedMarker
hFlush stdout
_ <- getLine
return True