aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Contributions/manpages/brew.1.md3
-rw-r--r--Library/Homebrew/utils.rb1
2 files changed, 4 insertions, 0 deletions
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md
index db1b37939..cddf08435 100644
--- a/Library/Contributions/manpages/brew.1.md
+++ b/Library/Contributions/manpages/brew.1.md
@@ -336,6 +336,9 @@ creating your own can be found on the wiki:
This can be used to keep downloads out of your home folder, if you have
it mounted on an SSD or are using FileVault for instance.
+ * HOMEBREW\_CURL\_VERBOSE:
+ If set, Homebrew will pass `--verbose` when invoking `curl`(1).
+
* HOMEBREW\_DEBUG:
If set, instructs Homebrew to always assume `--debug` when running
commands.
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 8eca952de..df23c1387 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -111,6 +111,7 @@ def curl *args
args = [HOMEBREW_CURL_ARGS, HOMEBREW_USER_AGENT, *args]
# See https://github.com/mxcl/homebrew/issues/6103
args << "--insecure" if MacOS.version < 10.6
+ args << "--verbose" if ENV['HOMEBREW_CURL_VERBOSE']
safe_system curl, *args
end