remote.name.annex-security-allow-unverified-downloads
Added remote.name.annex-security-allow-unverified-downloads, a per-remote setting for annex.security.allow-unverified-downloads. This commit was sponsored by Brock Spratlen on Patreon.
This commit is contained in:
parent
177e45517f
commit
bc31b93c77
8 changed files with 27 additions and 6 deletions
|
@ -234,6 +234,7 @@ data RemoteGitConfig = RemoteGitConfig
|
|||
, remoteAnnexBare :: Maybe Bool
|
||||
, remoteAnnexRetry :: Maybe Integer
|
||||
, remoteAnnexRetryDelay :: Maybe Seconds
|
||||
, remoteAnnexAllowUnverifiedDownloads :: Bool
|
||||
|
||||
{- These settings are specific to particular types of remotes
|
||||
- including special remotes. -}
|
||||
|
@ -291,6 +292,8 @@ extractRemoteGitConfig r remotename = do
|
|||
, remoteAnnexRetry = getmayberead "retry"
|
||||
, remoteAnnexRetryDelay = Seconds
|
||||
<$> getmayberead "retrydelay"
|
||||
, remoteAnnexAllowUnverifiedDownloads = (== Just "ACKTHPPT") $
|
||||
getmaybe ("security-allow-unverified-downloads")
|
||||
, remoteAnnexShell = getmaybe "shell"
|
||||
, remoteAnnexSshOptions = getoptions "ssh-options"
|
||||
, remoteAnnexRsyncOptions = getoptions "rsync-options"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue