diff options
| author | Markus Reiter | 2017-08-05 16:54:26 +0200 | 
|---|---|---|
| committer | GitHub | 2017-08-05 16:54:26 +0200 | 
| commit | c26c9204fa48c8d2bfa3837193eaf2a82b611fa6 (patch) | |
| tree | 554f6fdc4dadb8cabf51394fc41e0c42ccf81f6b /Library/Homebrew/formula.rb | |
| parent | ae0b7cb824cfd0fa08fda1d2c0d0dd53b3c4adaa (diff) | |
| parent | 6d6ce7cf0a530b47a557ea748de9702420f6fab4 (diff) | |
| download | brew-c26c9204fa48c8d2bfa3837193eaf2a82b611fa6.tar.bz2 | |
Merge pull request #2965 from reitermarkus/cask-tap
Detect `Tap` in `CaskLoader`.
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 5673a433f..dc1d097a5 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -177,8 +177,8 @@ class Formula      @tap = if path == Formulary.core_path(name)        CoreTap.instance -    elsif path.to_s =~ HOMEBREW_TAP_PATH_REGEX -      Tap.fetch(Regexp.last_match(1), Regexp.last_match(2)) +    elsif match = path.to_s.match(HOMEBREW_TAP_PATH_REGEX) +      Tap.fetch(match[:user], match[:repo])      end      @full_name = full_name_with_optional_tap(name) | 
