diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index bec8861dad..f1fd7409a4 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -149,6 +149,10 @@ module Homebrew _system(cmd, *args) end + def self.git_origin + HOMEBREW_REPOSITORY.cd { `git config --get remote.origin.url 2>/dev/null`.chuzzle } + end + def self.git_head HOMEBREW_REPOSITORY.cd { `git rev-parse --verify -q HEAD 2>/dev/null`.chuzzle } end