Skip to content
Snippets Groups Projects
Commit 4b6de22c authored by Jack Nagel's avatar Jack Nagel Committed by Adam Vandenberg
Browse files

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

parent 35e2a5a4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment