diff --git a/Library/Homebrew/cmd/--config.rb b/Library/Homebrew/cmd/--config.rb index ecbcb0a1da..2c1bedaf5e 100644 --- a/Library/Homebrew/cmd/--config.rb +++ b/Library/Homebrew/cmd/--config.rb @@ -56,7 +56,7 @@ module Homebrew extend self def origin origin = HOMEBREW_REPOSITORY.cd do - `git config --get remote.origin.url`.chomp + `git config --get remote.origin.url 2>/dev/null`.chomp end if origin.empty? then "(none)" else origin end end