brew info FIX if git isn't installed
This commit is contained in:
parent
4f8c46d627
commit
4c09e3ef2b
@ -94,7 +94,8 @@ end
|
|||||||
def info name
|
def info name
|
||||||
require 'formula'
|
require 'formula'
|
||||||
|
|
||||||
user=`git config --global github.user`.chomp
|
user=''
|
||||||
|
user=`git config --global github.user`.chomp if system "which git > /dev/null"
|
||||||
user='mxcl' if user.empty?
|
user='mxcl' if user.empty?
|
||||||
# FIXME it would be nice if we didn't assume the default branch is masterbrew
|
# 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}"
|
history="http://github.com/#{user}/homebrew/commits/masterbrew/Library/Formula/#{Formula.path(name).basename}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user