diff options
| author | Christian Mayer | 2009-08-31 18:33:40 +0200 |
|---|---|---|
| committer | Max Howell | 2009-08-31 18:09:48 +0100 |
| commit | d60fc4ba86d45255b0093303c45f6b1c2196fda2 (patch) | |
| tree | e46c4bd99ad6ae5f13562cb177137815c480628f /Library | |
| parent | d899ae0dae833fe137f74deb2e11d56e25a20600 (diff) | |
| download | homebrew-d60fc4ba86d45255b0093303c45f6b1c2196fda2.tar.bz2 | |
If forked, open Github history of forked repository
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 70b5f784f..0c3183f41 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 |
