aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/info.rb
diff options
context:
space:
mode:
authorXu Cheng2015-12-02 14:35:42 +0800
committerXu Cheng2015-12-03 13:46:59 +0800
commit48950f2cc07d74a52411cf1fe8674409736291ab (patch)
tree0da3b69048aea7198636e5f1bd2df3902fc9258b /Library/Homebrew/cmd/info.rb
parent9755662e49439c29d5724f5d71f3ba1f03cd9d6d (diff)
downloadbrew-48950f2cc07d74a52411cf1fe8674409736291ab.tar.bz2
centralize the logic of handling `homebrew-` in Tap.fetch
Closes Homebrew/homebrew#46537. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/cmd/info.rb')
-rw-r--r--Library/Homebrew/cmd/info.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index da50fe5d2..68e4c5425 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -69,7 +69,7 @@ module Homebrew
def github_info(f)
if f.tap?
user, repo = f.tap.split("/", 2)
- tap = Tap.fetch user, repo.gsub(/^homebrew-/, "")
+ tap = Tap.fetch user, repo
if remote = tap.remote
path = f.path.relative_path_from(tap.path)
github_remote_path(remote, path)