config: use Homebrew.git_origin
This commit is contained in:
parent
4529df1246
commit
aae5b4f721
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user