From 1e22bb4ee18e3c0ed5ba36c9bd8f760810a3ae2e Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 31 Aug 2009 21:05:23 +0100 Subject: Use github.user for github history link Discussion: d60fc4ba86d45255b0093303c45f6b1c2196fda2 --- Library/Homebrew/brew.h.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index b97201e1d..ed980ebb9 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -94,8 +94,9 @@ end def info name require 'formula' - user=`cd #{HOMEBREW_PREFIX}; git remote -v show`.scan(/github.com:(.*)\/.*fetch/).to_s + user=`git config --global github.user`.chomp user='mxcl' if user.empty? + # FIXME it would be nice if we didn't assume the default branch is masterbrew history="http://github.com/#{user}/homebrew/commits/masterbrew/Library/Formula/#{Formula.path(name).basename}" exec 'open', history if ARGV.flag? '--github' -- cgit v1.2.3