aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/tap.rb5
-rw-r--r--Library/Homebrew/test/test_integration_cmds.rb3
2 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb
index 774342de5..a755e5559 100644
--- a/Library/Homebrew/cmd/tap.rb
+++ b/Library/Homebrew/cmd/tap.rb
@@ -16,8 +16,9 @@ module Homebrew
else
tap = Tap.fetch(ARGV.named[0])
begin
- tap.install(:clone_target => ARGV.named[1],
- :full_clone => ARGV.include?("--full"))
+ tap.install :clone_target => ARGV.named[1],
+ :full_clone => ARGV.include?("--full"),
+ :quiet => ARGV.quieter?
rescue TapAlreadyTappedError => e
opoo e
end
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb
index ffdcaa8b5..530c9aa13 100644
--- a/Library/Homebrew/test/test_integration_cmds.rb
+++ b/Library/Homebrew/test/test_integration_cmds.rb
@@ -205,6 +205,7 @@ class IntegrationCommandTests < Homebrew::TestCase
shutup do
system "git", "init"
system "git", "remote", "add", "origin", "https://github.com/Homebrew/homebrew-foo"
+ FileUtils.touch "readme"
system "git", "add", "--all"
system "git", "commit", "-m", "init"
end
@@ -220,6 +221,8 @@ class IntegrationCommandTests < Homebrew::TestCase
assert_match "Unpinned homebrew/foo", cmd("tap-unpin", "homebrew/foo")
assert_match "Tapped", cmd("tap", "homebrew/bar", path/".git")
assert_match "Untapped", cmd("untap", "homebrew/bar")
+ assert_equal "", cmd("tap", "homebrew/bar", path/".git", "-q", "--full")
+ assert_match "Untapped", cmd("untap", "homebrew/bar")
ensure
Tap::TAP_DIRECTORY.rmtree
end