Pass annex.web-options to wget and curl after other options, so that eg --no-show-progress can be set by the user to disable the default --show-progress.

This commit is contained in:
Joey Hess 2016-12-13 11:56:23 -04:00
parent b0735d098d
commit 59fead6da3
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
4 changed files with 24 additions and 1 deletions

View file

@ -303,7 +303,7 @@ download' quiet url file uo = do
- it was asked to write to a file elsewhere. -}
go cmd opts = withTmpDir "downloadurl" $ \tmp -> do
absfile <- absPath file
let ps = addUserAgent uo $ reqParams uo++opts++[File absfile, File url]
let ps = addUserAgent uo $ opts++reqParams uo++[File absfile, File url]
boolSystem' cmd ps $ \p -> p { cwd = Just tmp }
quietopt s