diff options
| author | Jack Nagel | 2014-05-28 12:53:11 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-05-28 12:53:11 -0500 | 
| commit | 985eadbe693c99c0173502e09b1756b10a4aa144 (patch) | |
| tree | 8adb7003b77931c1dde3923e24257a14019495f9 | |
| parent | c90247aa44272b60df247c6c83512e2a6bd23395 (diff) | |
| download | brew-985eadbe693c99c0173502e09b1756b10a4aa144.tar.bz2 | |
Fix brew-versions for taps with a Formula directory
| -rw-r--r-- | Library/Homebrew/cmd/versions.rb | 4 | 
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'  | 
