diff options
| author | Xu Cheng | 2015-12-06 22:24:46 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-12-09 16:56:59 +0800 |
| commit | 62a623f0c3180d9b6334d31bfca73d3f0336bafb (patch) | |
| tree | 7f3abbf37a16bc0fc4a8d69248153f630830f6ea /Library | |
| parent | d948ec231dc4b6a10ab30b405fd9bc350d9737df (diff) | |
| download | brew-62a623f0c3180d9b6334d31bfca73d3f0336bafb.tar.bz2 | |
info: tap is a Tap object now
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 |
