aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2015-03-17 08:36:41 +0000
committerMike McQuaid2015-04-13 12:45:18 -0700
commitbcd34ded9e4b17b8658b7ae947cd392a4e5942c0 (patch)
tree704337d0ae758caf5bcd8a225794ce5156083ebb /Library
parent1874f52bdd8c600dde8a1979a3fa0ddfbab09331 (diff)
downloadhomebrew-bcd34ded9e4b17b8658b7ae947cd392a4e5942c0.tar.bz2
brew pull: add automatic tap repair
At the moment, every time I pull a new formulae from a tap, I have to fetch it with the fully qualified name, `brew fetch homebrew/versions/duck123 `, which is fine, but then I also have to install, test, and audit it in the same way, which isn’t fixed until I tap repair, which gets a bit onerous. This just adds a step to `brew pull` where it does the tap repair automatically for taps. Closes #37788. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/pull.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb
index 33ff22ab4..816fbf9fc 100644
--- a/Library/Homebrew/cmd/pull.rb
+++ b/Library/Homebrew/cmd/pull.rb
@@ -187,6 +187,8 @@ module Homebrew
ohai 'Patch changed:'
safe_system "git", "diff-tree", "-r", "--stat", revision, "HEAD"
+ safe_system "brew", "tap", "--repair" if tap_name
+
if ARGV.include? '--install'
changed_formulae.each do |f|
ohai "Installing #{f.name}"