diff options
| author | Max Howell | 2009-08-31 21:05:23 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-31 21:20:09 +0100 |
| commit | 1e22bb4ee18e3c0ed5ba36c9bd8f760810a3ae2e (patch) | |
| tree | 12576458d8ca63a7f0188528e1b583577d2153cd /Library | |
| parent | 5dd37087687fa837b990a50107aaf10d231a75ad (diff) | |
| download | brew-1e22bb4ee18e3c0ed5ba36c9bd8f760810a3ae2e.tar.bz2 | |
Use github.user for github history link
Discussion: d60fc4ba86d45255b0093303c45f6b1c2196fda2
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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' |
