Fix brew-info when on branch master and github.user set

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Jack Nagel 2011-04-25 13:47:03 -05:00 committed by Adam Vandenberg
parent 35e2a5a498
commit 4b6de22cf2

View File

@ -26,7 +26,7 @@ module Homebrew extend self
if system "/usr/bin/which -s git"
gh_user=`git config --global github.user 2>/dev/null`.chomp
/^\*\s*(.*)/.match(`git --git-dir=#{HOMEBREW_REPOSITORY}/.git branch 2>/dev/null`)
unless $1.nil? || $1.empty? || gh_user.empty?
unless $1.nil? || $1.empty? || $1.chomp == 'master' || gh_user.empty?
branch = $1.chomp
user = gh_user
end