diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index a11044d5c..fcc0c6710 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -67,18 +67,9 @@ module Homebrew end def github_info(f) - if f.tap? - user, repo = f.tap.split("/", 2) - tap = Tap.fetch user, repo - if remote = tap.remote - path = f.path.relative_path_from(tap.path) - github_remote_path(remote, path) - else - f.path - end - elsif f.core_formula? - if remote = git_origin - path = f.path.relative_path_from(HOMEBREW_REPOSITORY) + if f.tap + if remote = f.tap.remote + path = f.path.relative_path_from(f.tap.path) github_remote_path(remote, path) else f.path |
