config: use Homebrew.git_origin

This commit is contained in:
Xu Cheng 2015-09-08 15:14:15 +08:00
parent 4529df1246
commit aae5b4f721

View File

@ -53,10 +53,7 @@ module Homebrew
end end
def origin def origin
origin = HOMEBREW_REPOSITORY.cd do Homebrew.git_origin || "(none)"
`git config --get remote.origin.url 2>/dev/null`.chomp
end
if origin.empty? then "(none)" else origin end
end end
def describe_path(path) def describe_path(path)