Added annex.adviceNoSshCaching config.
Sponsored-by: Brock Spratlen on Patreon
This commit is contained in:
parent
9ad9e1eb65
commit
189fb05ffb
5 changed files with 27 additions and 3 deletions
|
@ -139,6 +139,7 @@ data GitConfig = GitConfig
|
|||
, gpgCmd :: GpgCmd
|
||||
, mergeDirectoryRenames :: Maybe String
|
||||
, annexPrivateRepos :: S.Set UUID
|
||||
, annexAdviceNoSshCaching :: Bool
|
||||
}
|
||||
|
||||
extractGitConfig :: ConfigSource -> Git.Repo -> GitConfig
|
||||
|
@ -255,6 +256,7 @@ extractGitConfig configsource r = GitConfig
|
|||
| otherwise = Nothing
|
||||
in mapMaybe get (M.toList (Git.config r))
|
||||
]
|
||||
, annexAdviceNoSshCaching = getbool (annexConfig "adviceNoSshCaching") True
|
||||
}
|
||||
where
|
||||
getbool k d = fromMaybe d $ getmaybebool k
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue