aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formulary.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 2a0d43f92..b8413f7a0 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -202,6 +202,10 @@ class Formulary
def self.canonical_name(ref)
loader_for(ref).name
+ rescue TapFormulaAmbiguityError
+ # If there are multiple tap formulae with the name of ref,
+ # then ref is the canonical name
+ ref.downcase
end
def self.path(ref)