Skip to content
Snippets Groups Projects
Commit 399388d8 authored by Dominyk Tiller's avatar Dominyk Tiller Committed by Mike McQuaid
Browse files

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 Homebrew/homebrew#37788.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 9cfd768b
No related branches found
No related tags found
No related merge requests found
......@@ -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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment