aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-05-28 12:53:11 -0500
committerJack Nagel2014-05-28 12:53:11 -0500
commit280dcfd1ca70d42dd3a6735f5d6fb1f6728e0c60 (patch)
tree8b1052790314c6248746ec17ebfe34d2046f3bd0 /Library/Homebrew/cmd
parentbcbde4d94401399b6c34987c9c290b3450f9685e (diff)
downloadhomebrew-280dcfd1ca70d42dd3a6735f5d6fb1f6728e0c60.tar.bz2
Fix brew-versions for taps with a Formula directory
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/versions.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb
index c8a67f32f..e4b3c1d3b 100644
--- a/Library/Homebrew/cmd/versions.rb
+++ b/Library/Homebrew/cmd/versions.rb
@@ -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'