diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 70b5f784f8..0c3183f416 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -94,7 +94,10 @@ end def info name require 'formula' - history="http://github.com/mxcl/homebrew/commits/masterbrew/Library/Formula/#{Formula.path(name).basename}" + user=`cd #{HOMEBREW_PREFIX}; git remote -v show`.scan(/github.com:(.*)\/.*fetch/).to_s + user='mxcl' if user.empty? + history="http://github.com/#{user}/homebrew/commits/masterbrew/Library/Formula/#{Formula.path(name).basename}" + exec 'open', history if ARGV.flag? '--github' f=Formula.factory name