aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-11-10 18:33:57 +0800
committerXu Cheng2015-11-10 18:33:57 +0800
commitd7e95997ae85b06d55f5ebe1be3f17d4cdf733ca (patch)
tree7368afe9bfca792e56266306673874f95a31a1f1 /Library
parentaab53e65a9c7fe3cfcaa9f2b6194f2b787f9fe44 (diff)
downloadbrew-d7e95997ae85b06d55f5ebe1be3f17d4cdf733ca.tar.bz2
tap: warn already tapped
Diffstat (limited to 'Library')
-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