tap: warn already tapped

This commit is contained in:
Xu Cheng 2015-11-10 18:33:57 +08:00
parent aab53e65a9
commit d7e95997ae

View File

@ -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