aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorilovezfs2016-04-04 03:18:55 -0700
committerilovezfs2016-04-05 07:25:27 -0700
commitfad235d8e82ae57b2004429a0297f313aafa3186 (patch)
tree02b3a8bfbfa5c0ae7deafc0b70fdb52c6bff0b6e /Library/Homebrew/cmd
parent1b7e13df4f936dd318a23698b7b69bd2ca0e2487 (diff)
downloadbrew-fad235d8e82ae57b2004429a0297f313aafa3186.tar.bz2
tap: support --full even if installed
Makes `tap` re-runnable and unshallows when requested with `--full`. Tapping with a different URL raises an exception. The homebrew/core tap cannot be untapped with `untap` so running `brew tap --full homebrew/core` is now a built-in way to get a full clone of this tap without resorting to workarounds. Closes #17. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-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