utils: add Homebrew.git_origin
This commit is contained in:
parent
edbb3a9e53
commit
1b531492ca
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user