diff options
Diffstat (limited to 'Remote.hs')
-rw-r--r-- | Remote.hs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -15,6 +15,7 @@ module Remote ( hasKey, hasKeyCheap, keyPossibilities, + forceTrust, remoteTypes, genList, @@ -137,6 +138,11 @@ keyPossibilities key = do return (sort validremotes, validtrusteduuids) +forceTrust :: TrustLevel -> String -> Annex () +forceTrust level remotename = do + r <- Remote.nameToUUID remotename + Annex.changeState $ \s -> + s { Annex.forcetrust = (r, level):Annex.forcetrust s } {- Filename of remote.log. -} remoteLog :: Annex FilePath |