aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/tap.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb
index c0cb6e8f1..701931f1e 100644
--- a/Library/Homebrew/cmd/tap.rb
+++ b/Library/Homebrew/cmd/tap.rb
@@ -14,9 +14,11 @@ module Homebrew
else
user, repo = tap_args
tap = Tap.fetch(user, repo)
- unless tap.installed?
+ begin
tap.install(:clone_target => ARGV.named[1],
:full_clone => ARGV.include?("--full"))
+ rescue TapAlreadyTappedError => e
+ opoo e
end
end
end