diff options
| author | Xu Cheng | 2015-12-02 14:35:42 +0800 | 
|---|---|---|
| committer | Xu Cheng | 2015-12-03 13:46:59 +0800 | 
| commit | 48950f2cc07d74a52411cf1fe8674409736291ab (patch) | |
| tree | 0da3b69048aea7198636e5f1bd2df3902fc9258b /Library/Homebrew/exceptions.rb | |
| parent | 9755662e49439c29d5724f5d71f3ba1f03cd9d6d (diff) | |
| download | brew-48950f2cc07d74a52411cf1fe8674409736291ab.tar.bz2 | |
centralize the logic of handling `homebrew-` in Tap.fetch
Closes Homebrew/homebrew#46537.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 55444469f..2199d27d3 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -76,7 +76,7 @@ class TapFormulaAmbiguityError < RuntimeError      @paths = paths      @formulae = paths.map do |path|        path.to_s =~ HOMEBREW_TAP_PATH_REGEX -      "#{$1}/#{$2.sub("homebrew-", "")}/#{path.basename(".rb")}" +      "#{Tap.fetch($1, $2)}/#{path.basename(".rb")}"      end      super <<-EOS.undent | 
