aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/info.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index 383ba4138..3edb6abce 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -28,8 +28,8 @@ module Homebrew extend self
end
end
- def github_info name
- path = Formula.path(name).realpath
+ def github_info f
+ path = f.path.realpath
if path.to_s =~ %r{#{HOMEBREW_REPOSITORY}/Library/Taps/(\w+)-(\w+)/(.*)}
user = $1
@@ -47,7 +47,7 @@ module Homebrew extend self
end
def info_formula f
- exec 'open', github_info(f.name) if ARGV.flag? '--github'
+ exec 'open', github_info(f) if ARGV.flag? '--github'
puts "#{f.name} #{f.version}"
puts f.homepage
@@ -77,7 +77,7 @@ module Homebrew extend self
puts "Not installed"
end
- history = github_info f.name
+ history = github_info(f)
puts history if history
the_caveats = (f.caveats || "").strip