Fix reversion in support of annex.web-options
Inverted logic added as part of the url security fix made it always use curl when annex.security.allowed-http-addresses=all unless annex.web-options was set. That nobody noticed kind of makes me wonder if anyone uses annex.web-options.. This commit was sponsored by Denis Dzyubenko on Patreon.
This commit is contained in:
parent
bf9af05867
commit
4b793fb077
2 changed files with 3 additions and 2 deletions
|
@ -59,8 +59,8 @@ getUrlOptions = Annex.getState Annex.urloptions >>= \case
|
|||
-- it from accessing specific IP addresses.
|
||||
curlopts <- map Param . annexWebOptions <$> Annex.getGitConfig
|
||||
let urldownloader = if null curlopts
|
||||
then U.DownloadWithCurl curlopts
|
||||
else U.DownloadWithConduit
|
||||
then U.DownloadWithConduit
|
||||
else U.DownloadWithCurl curlopts
|
||||
manager <- liftIO $ U.newManager U.managerSettings
|
||||
return (urldownloader, manager)
|
||||
allowedaddrs -> do
|
||||
|
|
|
@ -4,6 +4,7 @@ git-annex (6.20180927) UNRELEASED; urgency=medium
|
|||
tree because export tracking is not configured.
|
||||
* Improve display when git config download from a http remote fails.
|
||||
* Added annex.jobs setting, which is like using the -J option.
|
||||
* Fix reversion in support of annex.web-options.
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Thu, 27 Sep 2018 15:27:20 -0400
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue