diff options
author | Joey Hess <joey@kitenet.net> | 2014-01-02 13:12:32 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-01-02 13:12:32 -0400 |
commit | 434a8098037574ddd83e09bbf82a9d5b27181b8e (patch) | |
tree | 978ab0f48be492e06939e168cbc2392c4ae91b92 /Remote/List.hs | |
parent | 94043b612888a0555f630669c6391cb75842b6ea (diff) |
Remotes can now be made read-only, by setting remote.<name>.annex-readonly
Diffstat (limited to 'Remote/List.hs')
-rw-r--r-- | Remote/List.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Remote/List.hs b/Remote/List.hs index d01d23944..cc7019850 100644 --- a/Remote/List.hs +++ b/Remote/List.hs @@ -18,6 +18,7 @@ import Types.Remote import Types.GitConfig import Annex.UUID import Remote.Helper.Hooks +import Remote.Helper.ReadOnly import qualified Git import qualified Git.Config @@ -89,7 +90,7 @@ remoteGen m t r = do let gc = extractRemoteGitConfig g (Git.repoDescribe r) let c = fromMaybe M.empty $ M.lookup u m mrmt <- generate t r u c gc - return $ addHooks <$> mrmt + return $ adjustReadOnly . addHooks <$> mrmt {- Updates a local git Remote, re-reading its git config. -} updateRemote :: Remote -> Annex (Maybe Remote) |