aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/config.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/config.rb b/Library/Homebrew/cmd/config.rb
index 93b101bf6..a24d9c1cb 100644
--- a/Library/Homebrew/cmd/config.rb
+++ b/Library/Homebrew/cmd/config.rb
@@ -53,10 +53,7 @@ module Homebrew
end
def origin
- origin = HOMEBREW_REPOSITORY.cd do
- `git config --get remote.origin.url 2>/dev/null`.chomp
- end
- if origin.empty? then "(none)" else origin end
+ Homebrew.git_origin || "(none)"
end
def describe_path(path)