Skip to content

Commit

Permalink
Use github.user for github history link
Browse files Browse the repository at this point in the history
Discussion: d60fc4b
  • Loading branch information
mxcl committed Aug 31, 2009
1 parent b60d67d commit 14ef7f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/brew.h.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ def install
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'
Expand Down

0 comments on commit 14ef7f9

Please sign in to comment.