diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index a1f903b7b..74443a41c 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -65,13 +65,14 @@ module Homebrew if f.tap? user, repo = f.tap.split("/", 2) path = f.path.relative_path_from(HOMEBREW_LIBRARY.join("Taps", f.tap)) - else + "https://github.com/#{user}/#{repo}/blob/master/#{path}" + elsif f.core_formula? user = f.path.parent.cd { github_fork } - repo = "homebrew" path = f.path.relative_path_from(HOMEBREW_REPOSITORY) + "https://github.com/#{user}/homebrew/blob/master/#{path}" + else + f.path end - - "https://github.com/#{user}/#{repo}/blob/master/#{path}" end def info_formula f |
