diff options
| author | Xu Cheng | 2015-09-08 15:14:15 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-09-09 12:19:16 +0800 |
| commit | aae5b4f721a91ab2c9cc6c4ac25413d261d8f779 (patch) | |
| tree | 75da24b41389a529d7de871d1997d6cf5520efbf /Library | |
| parent | 4529df1246a8db82ee07c4945f62b801ba6bf655 (diff) | |
| download | brew-aae5b4f721a91ab2c9cc6c4ac25413d261d8f779.tar.bz2 | |
config: use Homebrew.git_origin
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/config.rb | 5 |
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) |
