aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/tap.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/tap.rb')
-rw-r--r--Library/Homebrew/cmd/tap.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb
index 079365336..1bd378d69 100644
--- a/Library/Homebrew/cmd/tap.rb
+++ b/Library/Homebrew/cmd/tap.rb
@@ -17,8 +17,10 @@ module Homebrew
tap.install :clone_target => ARGV.named[1],
:full_clone => ARGV.include?("--full"),
:quiet => ARGV.quieter?
- rescue TapAlreadyTappedError => e
- opoo e
+ rescue TapRemoteMismatchError => e
+ odie e
+ rescue TapAlreadyTappedError, TapAlreadyUnshallowError
+ # Do nothing.
end
end
end