summaryrefslogtreecommitdiff
path: root/Remote.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Remote.hs')
-rw-r--r--Remote.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Remote.hs b/Remote.hs
index e7ef5f195..2e956cb81 100644
--- a/Remote.hs
+++ b/Remote.hs
@@ -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