Fix brew-info when on branch master and github.user set
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
35e2a5a498
commit
4b6de22cf2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user