From 62a623f0c3180d9b6334d31bfca73d3f0336bafb Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sun, 6 Dec 2015 22:24:46 +0800 Subject: [PATCH] info: tap is a Tap object now --- Library/Homebrew/cmd/info.rb | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index a11044d5c9..fcc0c67107 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