config: squelch stderr when invoking git
This commit is contained in:
parent
7bb90c992a
commit
5b0e0c2570
@ -56,7 +56,7 @@ module Homebrew extend self
|
|||||||
|
|
||||||
def origin
|
def origin
|
||||||
origin = HOMEBREW_REPOSITORY.cd do
|
origin = HOMEBREW_REPOSITORY.cd do
|
||||||
`git config --get remote.origin.url`.chomp
|
`git config --get remote.origin.url 2>/dev/null`.chomp
|
||||||
end
|
end
|
||||||
if origin.empty? then "(none)" else origin end
|
if origin.empty? then "(none)" else origin end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user