Fix brew-versions for taps with a Formula directory

This commit is contained in:
Jack Nagel 2014-05-28 12:53:11 -05:00
parent c90247aa44
commit 985eadbe69

View File

@ -74,9 +74,7 @@ class Formula
end
def entry_name
@entry_name ||= begin
repository == HOMEBREW_REPOSITORY ? "Library/Formula/#{name}.rb" : "#{name}.rb"
end
@entry_name ||= path.relative_path_from(repository).to_s
end
def rev_list branch='HEAD'