diff options
| author | Jack Nagel | 2014-06-30 19:15:03 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-30 19:18:28 -0500 |
| commit | 4c05d411f3345c083c933b3666229cd555162e0d (patch) | |
| tree | 0136a8eeb3bc3ac9a33998221453282c79a83ebf /Library/Homebrew/cmd | |
| parent | c904c71792233c5564a5b73814bfbb8d81389b50 (diff) | |
| download | brew-4c05d411f3345c083c933b3666229cd555162e0d.tar.bz2 | |
Add a method for getting the repo HEAD
Diffstat (limited to 'Library/Homebrew/cmd')
| -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 9ee9cace2..133e01439 100644 --- a/Library/Homebrew/cmd/config.rb +++ b/Library/Homebrew/cmd/config.rb @@ -44,10 +44,7 @@ module Homebrew end def head - head = HOMEBREW_REPOSITORY.cd do - `git rev-parse --verify -q HEAD 2>/dev/null`.chomp - end - if head.empty? then "(none)" else head end + Homebrew.git_head || "(none)" end def origin |
