implement lockContent for ssh remotes
This commit is contained in:
parent
6d4f741d5f
commit
3b89d5a20c
5 changed files with 52 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue